Skip to content

Commit

Permalink
set securityContext in podSpec
Browse files Browse the repository at this point in the history
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
  • Loading branch information
zhzhuang-zju committed Jan 10, 2025
1 parent 253dc79 commit 3a94c5d
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 1 deletion.
4 changes: 3 additions & 1 deletion artifacts/deploy/karmada-apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ spec:
priorityClassName: system-node-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
securityContext:
seccompProfile:
type: RuntimeDefault
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
Expand Down
3 changes: 3 additions & 0 deletions artifacts/deploy/karmada-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ spec:
- name: karmada-config
secret:
secretName: karmada-controller-manager-config
securityContext:
seccompProfile:
type: RuntimeDefault
3 changes: 3 additions & 0 deletions artifacts/deploy/karmada-descheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ spec:
- name: scheduler-estimator-client-cert
secret:
secretName: karmada-descheduler-scheduler-estimator-client-cert
securityContext:
seccompProfile:
type: RuntimeDefault
3 changes: 3 additions & 0 deletions artifacts/deploy/karmada-etcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ spec:
mountPath: /etc/karmada/pki/server
- name: etcd-client-cert
mountPath: /etc/karmada/pki/etcd-client
securityContext:
seccompProfile:
type: RuntimeDefault
volumes:
- name: etcd-data
hostPath:
Expand Down
3 changes: 3 additions & 0 deletions artifacts/deploy/karmada-metrics-adapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ spec:
- name: server-cert
secret:
secretName: karmada-metrics-adapter-cert
securityContext:
seccompProfile:
type: RuntimeDefault
---
apiVersion: v1
kind: Service
Expand Down
3 changes: 3 additions & 0 deletions artifacts/deploy/karmada-scheduler-estimator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ spec:
- name: member-kubeconfig
secret:
secretName: {{member_cluster_name}}-kubeconfig
securityContext:
seccompProfile:
type: RuntimeDefault
---
apiVersion: v1
kind: Service
Expand Down
3 changes: 3 additions & 0 deletions artifacts/deploy/karmada-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ spec:
- name: scheduler-estimator-client-cert
secret:
secretName: karmada-scheduler-scheduler-estimator-client-cert
securityContext:
seccompProfile:
type: RuntimeDefault
3 changes: 3 additions & 0 deletions artifacts/deploy/karmada-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ spec:
- name: etcd-client-cert
secret:
secretName: karmada-search-etcd-client-cert
securityContext:
seccompProfile:
type: RuntimeDefault
---
apiVersion: v1
kind: Service
Expand Down
3 changes: 3 additions & 0 deletions artifacts/deploy/karmada-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ spec:
- name: server-cert
secret:
secretName: karmada-webhook-cert
securityContext:
seccompProfile:
type: RuntimeDefault
---
apiVersion: v1
kind: Service
Expand Down
3 changes: 3 additions & 0 deletions artifacts/deploy/kube-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ spec:
- name: service-account-key-pair
secret:
secretName: kube-controller-manager-service-account-key-pair
securityContext:
seccompProfile:
type: RuntimeDefault

0 comments on commit 3a94c5d

Please sign in to comment.