Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Influxdb] Support containerSecurityContext #599

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/influxdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: influxdb
version: 4.12.5
version: 4.13.0
appVersion: 1.8.10
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
Expand Down
1 change: 1 addition & 0 deletions charts/influxdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ The following table lists configurable parameters, their descriptions, and their
| affinity | [Affinity](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) for pod assignment | { |
| tolerations | [Tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) for pod assignment | [] |
| securityContext | [securityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for pod | {} |
| containerSecurityContext | [containerSecurityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for container | {} |
| env | environment variables for influxdb container | {} |
| volumes | `volumes` stanza(s) to be used in the main container | nil |
| mountPoints | `volumeMount` stanza(s) to be used in the main container | nil |
Expand Down
3 changes: 3 additions & 0 deletions charts/influxdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ spec:
failureThreshold: {{ .Values.startupProbe.failureThreshold | default 6 }}
periodSeconds: {{ .Values.startupProbe.periodSeconds | default 5 }}
{{- end }}
{{- with .Values.containerSecurityContext }}
securityContext: {{ toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
- name: {{ include "influxdb.fullname" . }}-data
mountPath: /var/lib/influxdb
Expand Down
3 changes: 3 additions & 0 deletions charts/influxdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ securityContext: {}
# runAsUser: 999
# runAsGroup: 999

containerSecurityContext: {}
# readOnlyRootFilesystem: true

startupProbe:
enabled: false
# path: "/ping"
Expand Down