File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 3737{{ toYaml . | trim | indent 8 }}
3838{{- end }}
3939 spec :
40+ securityContext :
41+ fsGroup : {{ .Values.netdataOpentelemetry.securityContext.fsGroup }}
4042 serviceAccountName : {{ .Values.serviceAccount.name }}
4143 restartPolicy : Always
4244 {{- if .Values.netdataOpentelemetry.priorityClassName }}
@@ -122,6 +124,9 @@ spec:
122124 periodSeconds : {{ .Values.netdataOpentelemetry.readinessProbe.periodSeconds }}
123125 successThreshold : {{ .Values.netdataOpentelemetry.readinessProbe.successThreshold }}
124126 timeoutSeconds : {{ .Values.netdataOpentelemetry.readinessProbe.timeoutSeconds }}
127+ securityContext :
128+ runAsUser : {{ .Values.netdataOpentelemetry.securityContext.runAsUser }}
129+ runAsGroup : {{ .Values.netdataOpentelemetry.securityContext.runAsGroup }}
125130 volumeMounts :
126131 - name : os-release
127132 mountPath : /host/etc/os-release
Original file line number Diff line number Diff line change @@ -930,6 +930,17 @@ netdataOpentelemetry:
930930 # @section -- Netdata OpenTelemetry
931931 timeoutSeconds : 1
932932
933+ securityContext :
934+ # -- The UID to run the container process
935+ # @section -- Parent
936+ runAsUser : 201
937+ # -- The GID to run the container process
938+ # @section -- Parent
939+ runAsGroup : 201
940+ # -- The supplementary group for setting permissions on volumes
941+ # @section -- Parent
942+ fsGroup : 201
943+
933944 # -- Duration in seconds the pod needs to terminate gracefully
934945 # @section -- Netdata OpenTelemetry
935946 terminationGracePeriodSeconds : 30
You can’t perform that action at this time.
0 commit comments