rootless-containers / usernetes

Kubernetes without the root privileges
https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2033-kubelet-in-userns-aka-rootless
Apache License 2.0
853 stars 58 forks source link

Unable to create pods with Usernetes v2 #312

Closed katsumag closed 7 months ago

katsumag commented 7 months ago

Hello, I've installed Usernetes v2, and have successfully created ConfigMaps and Secrets.

However, when I came to apply a Deployment, I noticed that no pods would ever be created. Describing the deployment only shows ReplicaSetUpdated followed by MinimumReplicasUnavailable. If I describe the replicaset, it shows a normal SuccessfulCreate for a pod, which I can see with get pods, but it will stay on pending forever.

Attempting to run a busybox image with kubectl run -i --tty busybox --image=busybox --restart=Never -- sh results in: "error: timed out waiting for the condition".

Do you have any ideas?

katsumag commented 7 months ago

The issue is that I'm running a single node, which has the control-plane role and the node-roles.kubernetes.io/control-plane:NoSchedule taint applied to it, so no pods were being scheduled.