How can you check what are the taints defined on nodes?

Experience Level: Junior
Tags: Kubernetes

Answer

To list all taints on all nodes, run the following command:

kubectl get nodes -o jsonpath="{.items[].spec.taints}"

To get all taints of one specific node, run the following command:

kubectl get node nodename -o jsonpath="{.spec.taints}"

Comments

No Comments Yet.
Be the first to tell us what you think.
Kubernetes
Kubernetes

Are you learning Kubernetes ? Try our test we designed to help you progress faster.

Test yourself
Kubernetes Certified Administrator (CKA) preparation
Kubernetes Certified Administrator (CKA) preparation

Are you learning Kubernetes ? Try our test we designed to help you progress faster.

Test yourself