summaryrefslogtreecommitdiffstats
path: root/kubernetes/multicloud/charts/multicloud-vio/templates/service.yaml
diff options
context:
space:
mode:
authorAlexis de Talhouƫt <alexis.de_talhouet@bell.ca>2018-10-12 02:27:33 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-12 02:27:33 +0000
commit36c5f8be7cc94909dc58b5a642e5f338883c8c49 (patch)
tree5675b9a7a0822a49797ce3a489ee58c44e5ea224 /kubernetes/multicloud/charts/multicloud-vio/templates/service.yaml
parent4bfde1b98ba334c0adec16a9b2291ad9f48c18da (diff)
parent0c54f18e22c1a6039eb0c0d24b2cfd27a847b133 (diff)
Merge "Add v1 service endpoints for MultiCloud components"
Diffstat (limited to 'kubernetes/multicloud/charts/multicloud-vio/templates/service.yaml')
-rw-r--r--kubernetes/multicloud/charts/multicloud-vio/templates/service.yaml16
1 files changed, 12 insertions, 4 deletions
diff --git a/kubernetes/multicloud/charts/multicloud-vio/templates/service.yaml b/kubernetes/multicloud/charts/multicloud-vio/templates/service.yaml
index b53aef4bed..b34cbecb9d 100644
--- a/kubernetes/multicloud/charts/multicloud-vio/templates/service.yaml
+++ b/kubernetes/multicloud/charts/multicloud-vio/templates/service.yaml
@@ -18,7 +18,7 @@
apiVersion: v1
kind: Service
metadata:
- name: {{ .Values.service.name }}
+ name: {{ include "common.servicename" . }}
namespace: {{ include "common.namespace" . }}
labels:
app: {{ include "common.name" . }}
@@ -34,18 +34,26 @@ metadata:
"protocol": "REST",
"port": "{{ .Values.service.externalPort }}",
"visualRange": "1"
+ },
+ {
+ "serviceName": "multicloud-vio",
+ "version": "v1",
+ "url": "/api/multicloud-vio/v1",
+ "protocol": "REST",
+ "port": "{{ .Values.service.externalPort }}",
+ "visualRange": "1"
}
]'
spec:
ports:
{{if eq .Values.service.type "NodePort" -}}
- - name: http-{{ .Values.service.name }}
- port: {{ .Values.service.externalPort }}
+ - port: {{ .Values.service.externalPort }}
nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
+ name: {{ .Values.service.portName }}
{{- else -}}
- port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
- name: http-{{ .Values.service.name }}
+ name: {{ .Values.service.portName }}
{{- end}}
selector:
app: {{ include "common.name" . }}