Commit 8611f63a authored by Angus Williams's avatar Angus Williams Committed by David McKay

Adds optional securityContext config

Allows chart to be run as non-root user. This is required in environments where pod security policies prohibit running containers as root.
parent 78beac62
apiVersion: v1 apiVersion: v1
name: influxdb name: influxdb
version: 4.4.4 version: 4.4.5
appVersion: 1.7.10 appVersion: 1.7.10
description: Scalable datastore for metrics, events, and real-time analytics. description: Scalable datastore for metrics, events, and real-time analytics.
keywords: keywords:
......
...@@ -75,6 +75,7 @@ The command removes all the Kubernetes components associated with the chart and ...@@ -75,6 +75,7 @@ The command removes all the Kubernetes components associated with the chart and
| nodeSelector | Node labels for pod assignment | {} | | nodeSelector | Node labels for pod assignment | {} |
| affinity | [Affinity](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) for pod assignment | {| | 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 | [] | | 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 | {} |
| env | environment variables for influxdb container | {} | | env | environment variables for influxdb container | {} |
| config.reporting_disabled | [Details](https://docs.influxdata.com/influxdb/v1.7/administration/config/#reporting-disabled-false) | false | | config.reporting_disabled | [Details](https://docs.influxdata.com/influxdb/v1.7/administration/config/#reporting-disabled-false) | false |
| config.rpc | RPC address for backup and storage | {} | | config.rpc | RPC address for backup and storage | {} |
......
...@@ -38,6 +38,10 @@ spec: ...@@ -38,6 +38,10 @@ spec:
tolerations: tolerations:
{{ toYaml .Values.tolerations | indent 8 }} {{ toYaml .Values.tolerations | indent 8 }}
{{- end }} {{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
{{- if .Values.image.pullSecrets }} {{- if .Values.image.pullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- range .Values.image.pullSecrets }} {{- range .Values.image.pullSecrets }}
......
...@@ -28,6 +28,10 @@ readinessProbe: {} ...@@ -28,6 +28,10 @@ readinessProbe: {}
# timeoutSeconds: 1 # timeoutSeconds: 1
# scheme: HTTP # scheme: HTTP
securityContext: {}
# runAsUser: 999
# runAsGroup: 999
startupProbe: startupProbe:
enabled: false enabled: false
# failureThreshold: 6 # failureThreshold: 6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment