diff --git a/charts/descheduler/templates/cronjob.yaml b/charts/descheduler/templates/cronjob.yaml index 9ae80a004..21a2829f3 100644 --- a/charts/descheduler/templates/cronjob.yaml +++ b/charts/descheduler/templates/cronjob.yaml @@ -59,6 +59,14 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 16 }} + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + privileged: false + readOnlyRootFilesystem: true + runAsNonRoot: true volumeMounts: - mountPath: /policy-dir name: policy-volume