Open arielly-parussulo opened 7 months ago
Hi @arielly-parussulo, sorry for the late reply. The file you would need to patch is https://github.com/canonical/microk8s-core-addons/blob/main/addons/hostpath-storage/storage.yaml and your work will be available on the next MicroK8s release (1.30). Thank you.
Summary
When I was trying to create a hostpath-provisioner PVC for my microk8s cluster I noticed that hostpath-provisioner could not create PVCs inside nodes tainted with NoSchedule effect. The problem is that when hostpath-provisioner creates a pod to create the storage path inside the node and the created pod doesn't contain a toleration to allow it to be executed in any node.
What Should Happen Instead?
hostpath-provisioned pods should be executed in any node even with NoScheduled and NoExecuted taints.
Reproduction Steps
microk8s kubectl taint test=true:NoScheduled
to taint the node.microk8s enable hostpath-storage
.microk8s kubectl -n kube-system get pods
to findhostpath-provisioner-<node>-<hash>
in Pending state.Introspection Report
inspection-report.tar.gz
Can you suggest a fix?
hostpath-provisioner-<node>-<hash>
could start wih the toleration so it could be scheduled in any node.Are you interested in contributing with a fix?
Yes.