Differences between revisions 1 and 2
Revision 1 as of 2021-10-20 05:56:41
Size: 319
Editor: PieterSmit
Comment:
Revision 2 as of 2021-10-20 06:11:42
Size: 338
Editor: PieterSmit
Comment:
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

k8s/StudyNotes/SchedulingSelectors (last edited 2021-10-20 06:11:42 by PieterSmit)