diff --git a/charts/redis-ha/Chart.yaml b/charts/redis-ha/Chart.yaml index 4439911..1090b57 100644 --- a/charts/redis-ha/Chart.yaml +++ b/charts/redis-ha/Chart.yaml @@ -5,7 +5,7 @@ keywords: - redis - keyvalue - database -version: 4.27.5 +version: 4.27.6 appVersion: 7.2.4 description: This Helm chart provides a highly available Redis implementation with a master/slave configuration and uses Sentinel sidecars for failover management icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png diff --git a/charts/redis-ha/README.md b/charts/redis-ha/README.md index 72ab6e9..9dec5ef 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 50d2f50..64e3429 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 7e2d077..1a5e827 100644 --- a/charts/redis-ha/values.yaml +++ b/charts/redis-ha/values.yaml @@ -138,6 +138,8 @@ haproxy: serviceAccountName: redis-sa serviceAccount: create: true + automountToken: false + ## Official HAProxy embedded prometheus metrics settings. ## Ref: https://github.com/haproxy/haproxy/tree/master/contrib/prometheus-exporter ##