Difference between revisions of "CKA v1.18: Use label selectors to schedule Pods"

From wikieduonline
Jump to navigation Jump to search
(Created page with " * 1) Label: <code>kubectl label nodes</code> * 2) Define: <code>nodeSelector</code> * 3) Apply: <code>kubectl apply</code> * 4) Verify: <code>Kubectl get pods -o...")
 
Tags: Mobile web edit, Mobile edit
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
  
 
+
* 1) Label: <code>[[kubectl label nodes]]</code>
* 1) Label: <code>kubectl label nodes</code>
+
* 2) Define: <code>[[spec.NodeSelector]]</code> in <code>[[kind: Pod]]</code>
* 2) Define: <code>[[nodeSelector]]</code>
 
 
* 3) Apply: <code>[[kubectl apply]]</code>
 
* 3) Apply: <code>[[kubectl apply]]</code>
 
* 4) Verify: <code>[[Kubectl get pods]] -o wide</code>
 
* 4) Verify: <code>[[Kubectl get pods]] -o wide</code>
  
 +
== Related ==
 +
* [[Assign Pods to Nodes using Node Affinity]]
  
 
== See also ==
 
== See also ==

Latest revision as of 06:22, 16 March 2023

Advertising: