Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 334 Bytes

11 - pod-scheduler.md

File metadata and controls

23 lines (19 loc) · 334 Bytes

Manual Scheduler

Example:

apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    name: nginx
spec:
  containers:
  - name: nginx
    image: nginx
    ports:
    - containerPort: 80

  # manual set node
  nodeName: node01

To add a POD to a node just add the field nodeName with the node you wanna add the POD.