K8sbykeshed / k8s-service-validator

Kubernetes Network Service Validator
22 stars 10 forks source link

added selector and taints tolerance in pod specs. #120

Closed yzaccc closed 2 years ago

yzaccc commented 2 years ago

Added taints tolerance to the validator, so that it will not mess with nodes with "NoSchedule" taints in a production cluster.

Snapshots: Nodes with taint: image

Pods scheduling: image

Control plane will not get nodes scheduled on, as the multiple NoSchedule taints; while kind-worker2 has a pod scheduled on, as the taint tolerance.

image

image

yzaccc commented 2 years ago

In the next commit, need to delete the pending pods (because of taints) from the matrices.