Difference between revisions of "CKA v1.18: Use label selectors to schedule Pods"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 2: | Line 2: | ||
* 1) Label: <code>[[kubectl label nodes]]</code> | * 1) Label: <code>[[kubectl label nodes]]</code> | ||
− | * 2) Define: <code>[[ | + | * 2) Define: <code>[[spec.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> |
Revision as of 06:22, 16 March 2023
https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
- 1) Label:
kubectl label nodes
- 2) Define:
spec.NodeSelector
- 3) Apply:
kubectl apply
- 4) Verify:
Kubectl get pods -o wide
Related
See also
Advertising: