Skip to content

Commit

Permalink
[chart/redis-ha] ha-proxy: opt out of service account mounting #291
Browse files Browse the repository at this point in the history
Signed-off-by: a-hat <[email protected]>
  • Loading branch information
a-hat committed Aug 22, 2024
1 parent 6d66f83 commit 5953ba6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/redis-ha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
1 change: 1 addition & 0 deletions charts/redis-ha/templates/redis-haproxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/redis-ha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand Down

0 comments on commit 5953ba6

Please sign in to comment.