Skip to content

Commit

Permalink
restricted scc (kedacore#41)
Browse files Browse the repository at this point in the history
Signed-off-by: Zbynek Roubalik <[email protected]>
  • Loading branch information
zroubalik authored and Kedify Bot committed Oct 18, 2024
1 parent d8f91c1 commit 61f884e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions http-add-on/templates/interceptor/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ spec:
imagePullSecrets:
{{- toYaml .Values.interceptor.imagePullSecrets | nindent 8 }}
serviceAccountName: {{ .Chart.Name }}-interceptor
{{- if .Values.podSecurityContext }}
{{- if .Values.podSecurityContext.interceptor }}
securityContext:
{{- toYaml .Values.podSecurityContext.interceptor | nindent 8 }}
{{- else }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
{{- end }}
containers:
- args:
- "--zap-log-level={{ .Values.logging.interceptor.level }}"
Expand Down
2 changes: 2 additions & 0 deletions http-add-on/templates/operator/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ spec:
imagePullSecrets:
{{- toYaml .Values.operator.imagePullSecrets | nindent 8 }}
serviceAccountName: {{ .Chart.Name }}
{{- if .Values.podSecurityContext }}
{{- if .Values.podSecurityContext.operator }}
securityContext:
{{- toYaml .Values.podSecurityContext.operator | nindent 8 }}
{{- else }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
{{- end }}
containers:
- args:
- --secure-listen-address=0.0.0.0:{{ .Values.operator.port | default 8443 }}
Expand Down
4 changes: 3 additions & 1 deletion http-add-on/templates/scaler/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ spec:
imagePullSecrets:
{{- toYaml .Values.scaler.imagePullSecrets | nindent 8 }}
serviceAccountName: {{ .Chart.Name }}-external-scaler
{{- if .Values.podSecurityContext }}
{{- if .Values.podSecurityContext.scaler }}
securityContext:
{{- toYaml .Values.podSecurityContext.scaler | nindent 8 }}
{{- else }}
{{- else if .Values.podSecurityContext }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
{{- end }}
containers:
- args:
- "--zap-log-level={{ .Values.logging.scaler.level }}"
Expand Down
10 changes: 6 additions & 4 deletions http-add-on/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ securityContext:
- ALL
privileged: false
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
# runAsUser: 1000
# runAsGroup: 1000
# operator:
Expand Down Expand Up @@ -282,10 +284,10 @@ securityContext:

# -- [Pod security context] for all pods
# @default -- [See below](#KEDA-is-secure-by-default)
podSecurityContext:
fsGroup: 1000
supplementalGroups:
- 1000
# podSecurityContext:
# fsGroup: 1000
# supplementalGroups:
# - 1000
# operator:
# runAsNonRoot: true
# runAsUser: 1000
Expand Down

0 comments on commit 61f884e

Please sign in to comment.