diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-08-04 14:00:22 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-08-06 14:03:07 +0000 |
commit | 940947080d9daf2ff34a7b2515233c1914b95b2f (patch) | |
tree | 76e7eaeb9cab5bec6aee1f0681254b59a20b8c6c /kubernetes/vid/templates/service.yaml | |
parent | 9b1f54400c9f87cb28720d0ca39c0ea681061947 (diff) |
Close VID's plain text port 30238
* Move robot's health-check to https
* Expose 8080 on ClusterIP only
Issue-ID: VID-496
Issue-ID: OJSI-119
Change-Id: I9c197684c124e131c84109a7c0cbd279abcd4890
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'kubernetes/vid/templates/service.yaml')
-rw-r--r-- | kubernetes/vid/templates/service.yaml | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/kubernetes/vid/templates/service.yaml b/kubernetes/vid/templates/service.yaml index 36b35e40da..1e465c95e0 100644 --- a/kubernetes/vid/templates/service.yaml +++ b/kubernetes/vid/templates/service.yaml @@ -29,17 +29,32 @@ spec: - port: {{ .Values.service.internalPort }} nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} name: {{ .Values.service.portName }} - - port: {{ .Values.service.internalPort2 }} - nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }} - name: {{ .Values.service.portName2 }} {{- else -}} - port: {{ .Values.service.externalPort }} targetPort: {{ .Values.service.internalPort }} name: {{ .Values.service.portName }} - - port: {{ .Values.service.externalPort2 }} - targetPort: {{ .Values.service.internalPort2 }} - name: {{ .Values.service.portName2 }} {{- end}} selector: app: {{ include "common.name" . }} release: {{ .Release.Name }} +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "common.servicename" . }}-http + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + type: ClusterIP + selector: + app: {{ include "common.name" . }} + release: {{ .Release.Name }} + ports: + - name: {{ .Values.service.portName }}-http + port: {{ .Values.service.externalHttpPort }} + targetPort: {{ .Values.service.internalHttpPort }} + protocol: TCP |