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
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
Add a node inside your microk8s cluster.
Run microk8s kubectl taint test=true:NoScheduled to taint the node.
Enable hostpath-storage add-ons using microk8s enable hostpath-storage.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
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.
The text was updated successfully, but these errors were encountered: