From 865b98f55de82ce6d2beaf73a313b26ef40a5293 Mon Sep 17 00:00:00 2001 From: Alejandro Garrido Mota Date: Wed, 11 Sep 2019 16:39:25 +0100 Subject: [PATCH] Added support for service annotations --- templates/server-service.yaml | 3 +++ values.yaml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/server-service.yaml b/templates/server-service.yaml index 34fd89f..6dd2602 100644 --- a/templates/server-service.yaml +++ b/templates/server-service.yaml @@ -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 }} diff --git a/values.yaml b/values.yaml index 42393bf..0f5a442 100644 --- a/values.yaml +++ b/values.yaml @@ -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