custom-hashicorp-vault-helm/templates/vault-service.yaml
Alan Bridgeman ae8f4ad22b
All checks were successful
Deploy the Helm Chart / build (push) Successful in 11s
Updated chart so that it worked better as a subchart, is more configurable and better documented
2025-12-19 17:11:14 -06:00

22 lines
No EOL
571 B
YAML

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