Difference between revisions of "CKA v1.18: Use label selectors to schedule Pods"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ | 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>[[nodeSelector]]</code> | * 2) Define: <code>[[nodeSelector]]</code> | ||
* 3) Apply: <code>[[kubectl apply]]</code> | * 3) Apply: <code>[[kubectl apply]]</code> |
Revision as of 15:40, 22 August 2020
https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
- 1) Label:
kubectl label nodes
- 2) Define:
nodeSelector
- 3) Apply:
kubectl apply
- 4) Verify:
Kubectl get pods -o wide
See also
Advertising: