diff --git a/bootstrap/config/manager/manager.yaml b/bootstrap/config/manager/manager.yaml index 873a8290..3b5c6240 100644 --- a/bootstrap/config/manager/manager.yaml +++ b/bootstrap/config/manager/manager.yaml @@ -41,6 +41,14 @@ spec: httpGet: path: /healthz port: healthz + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + privileged: false + runAsUser: 65532 + runAsGroup: 65532 terminationGracePeriodSeconds: 10 serviceAccountName: manager tolerations: @@ -48,3 +56,7 @@ spec: key: node-role.kubernetes.io/master - effect: NoSchedule key: node-role.kubernetes.io/control-plane + securityContext: + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault diff --git a/controlplane/config/manager/manager.yaml b/controlplane/config/manager/manager.yaml index 1a8729f9..ebda8f44 100644 --- a/controlplane/config/manager/manager.yaml +++ b/controlplane/config/manager/manager.yaml @@ -54,6 +54,14 @@ spec: httpGet: path: /healthz port: healthz + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + privileged: false + runAsUser: 65532 + runAsGroup: 65532 # TODO(user): Configure the resources accordingly based on the project requirements. # More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ resources: @@ -70,3 +78,7 @@ spec: key: node-role.kubernetes.io/master - effect: NoSchedule key: node-role.kubernetes.io/control-plane + securityContext: + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault