diff --git a/charts/redis-ha/README.md b/charts/redis-ha/README.md index 72ab6e97..9dec5efb 100644 --- a/charts/redis-ha/README.md +++ b/charts/redis-ha/README.md @@ -185,6 +185,7 @@ The following table lists the configurable parameters of the Redis chart and the | `haproxy.emptyDir` | Configuration of `emptyDir` | `{}` | | `haproxy.labels` | Labels for the HAProxy pod | `{}` | | `haproxy.serviceAccountName`| HAProxy serviceAccountName | `default` +| `haproxy.serviceAccount.automountToken` | Opt in/out of automounting API credentials into container | `false` | | `haproxy.service.type` | HAProxy service type "ClusterIP", "LoadBalancer" or "NodePort" | `ClusterIP` | | `haproxy.service.nodePort` | HAProxy service nodePort value (haproxy.service.type must be NodePort) | not set | | `haproxy.image.serviceAccountName`| HAProxy serviceAccountName | `default` diff --git a/charts/redis-ha/templates/redis-haproxy-deployment.yaml b/charts/redis-ha/templates/redis-haproxy-deployment.yaml index 50d2f504..64e34291 100644 --- a/charts/redis-ha/templates/redis-haproxy-deployment.yaml +++ b/charts/redis-ha/templates/redis-haproxy-deployment.yaml @@ -49,6 +49,7 @@ spec: {{- else }} serviceAccountName: {{ .Values.haproxy.serviceAccountName }} {{- end }} + automountServiceAccountToken: {{ .Values.haproxy.serviceAccount.automountToken }} securityContext: {{ toYaml .Values.haproxy.securityContext | nindent 8 }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} diff --git a/charts/redis-ha/values.yaml b/charts/redis-ha/values.yaml index 7e2d0776..56d0200e 100644 --- a/charts/redis-ha/values.yaml +++ b/charts/redis-ha/values.yaml @@ -138,6 +138,8 @@ haproxy: serviceAccountName: redis-sa serviceAccount: create: true + automountServiceAccountToken: false + ## Official HAProxy embedded prometheus metrics settings. ## Ref: https://github.com/haproxy/haproxy/tree/master/contrib/prometheus-exporter ##