Kubernetes
Medium
Commands
Which command would you use to label a node?
Select your answer:
Show answer and explanation
Answer: kubectl label node <node-name> key=value
Explanation
The 'kubectl label node <node-name> key=value' command adds or updates labels on a node. Labels are key-value pairs that can be used to organize and select subsets of objects, such as nodes with specific capabilities or in specific regions.
More medium Kubernetes questions
- Which HTTP status code does the Kubernetes Eviction API return when a PodDisruptionBudget blocks an eviction?
- Which component of the Kubernetes control plane is responsible for maintaining the desired state of the cluster?
- What is the difference between a Deployment and a StatefulSet?
- A pod is stuck in 'Pending' state. What is the most likely cause?
- Which component is responsible for maintaining network rules on nodes and enabling pod-to-pod communication?
- What is a DaemonSet used for in Kubernetes?