Skip to content

Commit

Permalink
update clustermanager and clusterproxy scc (#552)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiwei Yin <[email protected]>
  • Loading branch information
zhiweiyin318 authored Dec 8, 2023
1 parent d7f963e commit 7a26a7d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ spec:
- ALL
privileged: false
runAsNonRoot: true
readOnlyRootFilesystem: true
volumeMounts:
- name: tmpdir
mountPath: /tmp
volumes:
- name: tmpdir
emptyDir: { }
hostIPC: false
hostNetwork: false
hostPID: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ spec:
- --agent-install-namespace=open-cluster-management-agent-addon
- --agent-install-all=true
- --enable-kube-api-proxy=false
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
runAsNonRoot: true
readOnlyRootFilesystem: true
{{- if .Values.global.pullSecret }}
imagePullSecrets:
- name: {{ .Values.global.pullSecret }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ spec:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
- name: user-server
image: '{{ .Values.global.imageOverrides.cluster_proxy_addon }}'
imagePullPolicy: '{{ .Values.global.pullPolicy }}'
Expand Down Expand Up @@ -119,6 +121,8 @@ spec:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
livenessProbe:
httpGet:
path: /healthz
Expand Down

0 comments on commit 7a26a7d

Please sign in to comment.