Skip to content

Commit

Permalink
Add UI targetPort option (hashicorp#437)
Browse files Browse the repository at this point in the history
Use custom `targetPort` for UI service. See the usecase in hashicorp#385 (comment)
  • Loading branch information
inigohu authored and illegalnumbers committed Mar 16, 2022
1 parent 661bcb3 commit 29aad1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/ui-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
ports:
- name: {{ include "vault.scheme" . }}
port: {{ .Values.ui.externalPort }}
targetPort: 8200
targetPort: {{ .Values.ui.targetPort }}
{{- if .Values.ui.serviceNodePort }}
nodePort: {{ .Values.ui.serviceNodePort }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ ui:
serviceType: "ClusterIP"
serviceNodePort: null
externalPort: 8200
targetPort: 8200

# loadBalancerSourceRanges:
# - 10.0.0.0/16
Expand Down

0 comments on commit 29aad1e

Please sign in to comment.