diff options
author | 2018-12-07 18:13:10 +0000 | |
---|---|---|
committer | 2018-12-07 18:13:10 +0000 | |
commit | a3813832985a30642d56b4ae49fe45d4170ece0d (patch) | |
tree | f746fc88a535492eeb18da717f4c3bf6c811aa0b /charts/aai-babel/templates/service.yaml | |
parent | 3535168b237838e1d2dbd5582709044385617d7d (diff) | |
parent | 036f61841fbc196eb3d81cc2ce7cd0d106e776e4 (diff) |
Merge "Adding pluggable security to Babel"
Diffstat (limited to 'charts/aai-babel/templates/service.yaml')
-rw-r--r-- | charts/aai-babel/templates/service.yaml | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/charts/aai-babel/templates/service.yaml b/charts/aai-babel/templates/service.yaml index eeb27ed..9a8b8a2 100644 --- a/charts/aai-babel/templates/service.yaml +++ b/charts/aai-babel/templates/service.yaml @@ -26,15 +26,27 @@ metadata: spec: type: {{ .Values.service.type }} ports: - {{if eq .Values.service.type "NodePort" -}} - - port: {{ .Values.service.internalPort}} - nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort}} - name: {{ .Values.service.portName }} - {{- else -}} - - port: {{ .Values.service.externalPort }} - targetPort: {{ .Values.service.internalPort }} - name: {{ .Values.service.portName }} - {{- end}} + {{ if .Values.global.installSidecarSecurity }} + {{if eq .Values.service.type "NodePort" -}} + - port: {{ .Values.global.rproxy.port }} + nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} + 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 }} + name: {{ .Values.service.portName }} + {{- else -}} + - port: {{ .Values.service.externalPort }} + targetPort: {{ .Values.service.internalPort }} + name: {{ .Values.service.portName }} + {{- end}} + {{ end }} selector: app: {{ include "common.name" . }} release: {{ .Release.Name }} |