diff options
author | Jennie Jia <Jennie.Jia@amdocs.com> | 2019-03-28 17:32:16 +0200 |
---|---|---|
committer | Alexis de Talhouƫt <adetalhouet89@gmail.com> | 2019-04-19 15:48:51 +0000 |
commit | e5a49bd2fb33407f662369862c36ff1957f47985 (patch) | |
tree | bd861b0b9d52cf13aedcf453aad11d97dc958967 /kubernetes/aai/charts/aai-search-data/templates/service.yaml | |
parent | 70b07469dada287b97c41c4eda6c18f514a3f5a6 (diff) |
Add Pluggable Security to Search MS
Issue-ID: AAI-2272
Change-Id: I1dfaa21a7e7de1e044812d6dd8098715d4eaa22a
Signed-off-by: Jennie Jia <Jennie.Jia@amdocs.com>
Diffstat (limited to 'kubernetes/aai/charts/aai-search-data/templates/service.yaml')
-rw-r--r-- | kubernetes/aai/charts/aai-search-data/templates/service.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kubernetes/aai/charts/aai-search-data/templates/service.yaml b/kubernetes/aai/charts/aai-search-data/templates/service.yaml index a49553e65b..73a4d62d02 100644 --- a/kubernetes/aai/charts/aai-search-data/templates/service.yaml +++ b/kubernetes/aai/charts/aai-search-data/templates/service.yaml @@ -25,6 +25,19 @@ metadata: spec: type: {{ .Values.service.type }} ports: + {{ if .Values.global.installSidecarSecurity }} + {{if eq .Values.service.type "NodePort" -}} + - port: {{ .Values.service.internalPort }} + nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} + targetPort: {{ .Values.global.rproxy.port }} + name: {{ .Values.service.portName }} + {{- else -}} + - port: {{ .Values.service.externalPort }} + targetPort: {{ .Values.global.rproxy.port }} + name: {{ .Values.service.portName }} + {{- end}} + {{ else }} + {{if eq .Values.service.type "NodePort" -}} - port: {{ .Values.service.internalPort }} nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} @@ -33,6 +46,7 @@ spec: - port: {{ .Values.service.internalPort }} name: {{ .Values.service.portName }} {{- end}} +{{ end }} selector: app: {{ include "common.name" . }} release: {{ .Release.Name }} |