Add UI targetPort option (#437)

Use custom `targetPort` for UI service. See the usecase in https://github.com/hashicorp/vault-helm/issues/385#issuecomment-749560213
This commit is contained in:
Iñigo Horcajo 2021-05-25 16:20:23 +02:00 committed by GitHub
parent e206fadd9e
commit 4c71c268b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -25,7 +25,7 @@ spec:
ports: ports:
- name: {{ include "vault.scheme" . }} - name: {{ include "vault.scheme" . }}
port: {{ .Values.ui.externalPort }} port: {{ .Values.ui.externalPort }}
targetPort: 8200 targetPort: {{ .Values.ui.targetPort }}
{{- if .Values.ui.serviceNodePort }} {{- if .Values.ui.serviceNodePort }}
nodePort: {{ .Values.ui.serviceNodePort }} nodePort: {{ .Values.ui.serviceNodePort }}
{{- end }} {{- end }}

View file

@ -665,6 +665,7 @@ ui:
serviceType: "ClusterIP" serviceType: "ClusterIP"
serviceNodePort: null serviceNodePort: null
externalPort: 8200 externalPort: 8200
targetPort: 8200
# loadBalancerSourceRanges: # loadBalancerSourceRanges:
# - 10.0.0.0/16 # - 10.0.0.0/16