You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output of ansible run:
Lost it, but everything seemed to be deployed normally. I can redeploy the cluster to save the output if needed.
Anything else do we need to know:
The issue seems to be related to the securityContext of the cert-manager pods:
Error creating: pods "cert-manager-8d45cdf46-scd7h" is forbidden: violates PodSecurity "restricted:latest": unrestricted capabilities (container "cert-manager" must set securityContext.capabilities.drop=["ALL"]), seccompProfile (pod or container "cert-manager" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
Updating the deployments' security context according to this, allows the pods to start normally:
kubectl -n cert-manager get po
NAME READY STATUS RESTARTS AGE
cert-manager-7d457bb758-srw2k 1/1 Running 0 86m
cert-manager-cainjector-79bfdbf497-2l6f9 1/1 Running 0 85m
cert-manager-webhook-5fb958587d-x9xc2 1/1 Running 0 84m
The text was updated successfully, but these errors were encountered:
Environment:
Hetzner cloud, deployed with "Kubernetes Cloud Controller Manager"
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):ansible --version
):ansible [core 2.12.5] config file = /root/kubespray/ansible.cfg configured module search path = ['/root/kubespray/library'] ansible python module location = /root/kubespray-venv/lib/python3.10/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /root/kubespray-venv/bin/ansible python version = 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] jinja version = 2.11.3 libyaml = True
python --version
):Kubespray version (commit) (
git rev-parse --short HEAD
):Network plugin used:
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):gist
Command used to invoke ansible:
ansible-playbook -i inventory/sdf-ws-220/hosts.yaml -e "@inventory/sdf-ws-220/hardening.yaml" cluster.yml
Output of ansible run:
Lost it, but everything seemed to be deployed normally. I can redeploy the cluster to save the output if needed.
Anything else do we need to know:
The issue seems to be related to the
securityContext
of thecert-manager
pods:Updating the deployments' security context according to this, allows the pods to start normally:
Result:
The text was updated successfully, but these errors were encountered: