diff --git a/incubator/cassandra/Chart.yaml b/incubator/cassandra/Chart.yaml index 729825130e42..d3addb6ec52a 100644 --- a/incubator/cassandra/Chart.yaml +++ b/incubator/cassandra/Chart.yaml @@ -1,5 +1,5 @@ name: cassandra -version: 0.2.2 +version: 0.2.3 description: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. diff --git a/incubator/cassandra/templates/cassandra-statefulset.yaml b/incubator/cassandra/templates/cassandra-statefulset.yaml index 0b812f611da7..e726554b47ac 100644 --- a/incubator/cassandra/templates/cassandra-statefulset.yaml +++ b/incubator/cassandra/templates/cassandra-statefulset.yaml @@ -60,6 +60,11 @@ spec: {{- if .Values.selector }} {{ toYaml .Values.selector | indent 6 }} {{- end }} + {{- if .Values.securityContext.enabled }} + securityContext: + fsGroup: {{ .Values.securityContext.fsGroup }} + runAsUser: {{ .Values.securityContext.runAsUser }} + {{- end }} containers: - name: {{ template "cassandra.fullname" . }} image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}" diff --git a/incubator/cassandra/values.yaml b/incubator/cassandra/values.yaml index a12c3692a386..9fe359917900 100644 --- a/incubator/cassandra/values.yaml +++ b/incubator/cassandra/values.yaml @@ -75,3 +75,9 @@ podLabels: {} podManagementPolicy: OrderedReady updateStrategy: type: OnDelete + +## Pod Security Context +securityContext: + enabled: false + fsGroup: 999 + runAsUser: 999