Skip to main content

Posts

Showing posts with the label manual-scheduling

Kubernetes: 7. Manual Scheduling

As new pod definition files are created, Kubernetes goes through them and looks for the property nodeName If this property does not exist, then Kubernetes has the job of scheduling this pod It then looks for the nodes that can host this pod and schedules it there And the pod definition is updated with the nodeName where it is running The property nodeName in the below definition file is optional. If the property is specified then kubernetes automatically schedules the pod on the selected node. This is called manual scheduling. Once the Kubernetes identifies the node on which to run, it creates a binding object that binds the pod with the node on which the pod will run pod-definition.yaml apiVersion: v1 kind: Pod metadata:      name: myapp-pod      labels:           app: myapp           location: IN spec:      nodeName: node01      contai...