custom-hashicorp-vault-helm/templates/vault-service.yaml
Alan Bridgeman f40cbdf6dd
All checks were successful
Deploy the Helm Chart / build (push) Successful in 7s
Initial code commit + initial automation stuff + etc...
2025-12-18 22:23:37 -06:00

22 lines
No EOL
574 B
YAML

{{- if .Values.vault.create.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-vault
labels:
app: {{ .Release.Name }}-vault
spec:
selector:
app: {{ .Release.Name }}-vault
ports:
{{- if .Values.vault.create.snapshotServer.enabled }}
- name: custom-snapshot-server
protocol: TCP
port: {{ .Values.vault.create.snapshotServer.externalPort }}
targetPort: {{ .Values.vault.create.snapshotServer.internalPort }}
{{- end }}
- name: http
protocol: TCP
port: 80
targetPort: 8200
{{- end -}}