⇤ ← Revision 1 as of 2021-10-20 05:56:41
319
Comment:
|
← Revision 2 as of 2021-10-20 06:11:42 ⇥
338
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
* kubectl get pod selector app=app1 | * {{{ kubectl get pod --selector app=app1,env=dev }}} |
Line 8: | Line 8: |
* In ReplicaSet, under spec: {{{ | * In !ReplicaSet, under spec: {{{ |
k8s Scheduling and Selectors
- Manually scheduling pods on nodes
The pod yaml definition, get's a Node: <Name> field added to schedule it to a specific node.
kubectl get pod --selector app=app1,env=dev
In ReplicaSet, under spec:
selector: matchLabels: app: App1