Merge pull request #437 from andyzhangx/add-seccompProfile

feat: enable securityContext.seccompProfile, set system-cluster-critical
This commit is contained in:
Andy Zhang 2023-04-09 19:44:41 +08:00 committed by GitHub
commit fa6a1e7974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 0 deletions

View File

@ -40,6 +40,9 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}
priorityClassName: system-cluster-critical
securityContext:
seccompProfile:
type: RuntimeDefault
{{- with .Values.controller.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}

View File

@ -25,6 +25,10 @@ spec:
hostNetwork: true # original nfs connection would be broken without hostNetwork setting
dnsPolicy: {{ .Values.controller.dnsPolicy }}
serviceAccountName: csi-nfs-node-sa
priorityClassName: system-node-critical
securityContext:
seccompProfile:
type: RuntimeDefault
{{- with .Values.node.affinity }}
affinity:
{{ toYaml . | indent 8 }}

View File

@ -40,6 +40,10 @@ spec:
app: {{ .Values.externalSnapshotter.name }}
spec:
serviceAccountName: {{ .Values.externalSnapshotter.name }}
priorityClassName: system-cluster-critical
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: {{ .Values.externalSnapshotter.name }}
image: {{ .Values.image.externalSnapshotter.repository }}:{{ .Values.image.externalSnapshotter.tag }}

View File

@ -20,6 +20,9 @@ spec:
nodeSelector:
kubernetes.io/os: linux # add "kubernetes.io/role: master" to run controller on master node
priorityClassName: system-cluster-critical
securityContext:
seccompProfile:
type: RuntimeDefault
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"

View File

@ -20,6 +20,10 @@ spec:
hostNetwork: true # original nfs connection would be broken without hostNetwork setting
dnsPolicy: Default # available values: Default, ClusterFirstWithHostNet, ClusterFirst
serviceAccountName: csi-nfs-node-sa
priorityClassName: system-node-critical
securityContext:
seccompProfile:
type: RuntimeDefault
nodeSelector:
kubernetes.io/os: linux
tolerations:

View File

@ -31,6 +31,10 @@ spec:
app: snapshot-controller
spec:
serviceAccountName: snapshot-controller
priorityClassName: system-cluster-critical
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: snapshot-controller
image: registry.k8s.io/sig-storage/snapshot-controller:v6.1.0