Added support for service annotations

This commit is contained in:
Alejandro Garrido Mota 2019-09-11 16:39:25 +01:00
parent 3f5b0b7b7e
commit 865b98f55d
2 changed files with 6 additions and 1 deletions

View file

@ -15,6 +15,9 @@ metadata:
# to an open issue where it may not work:
# https://github.com/kubernetes/kubernetes/issues/58662
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
{{- if .Values.server.service.annotations }}
{{ toYaml .Values.server.service.annotations | indent 4 }}
{{- end }}
spec:
{{- if .Values.server.service.clusterIP }}
clusterIP: {{ .Values.server.service.clusterIP }}

View file

@ -97,7 +97,9 @@ server:
port: 8200
# Target port to which the service should be mapped to
targetPort: 8200
# Extra annotations for the service definition
annotations: {}
# This configures the Vault Statefulset to create a PVC for data
# storage when using the file backend.
# See https://www.vaultproject.io/docs/audit/index.html to know more