Skip to content

Latest commit

 

History

History
35 lines (35 loc) · 676 Bytes

custom-scheduler.MD

File metadata and controls

35 lines (35 loc) · 676 Bytes
# my-custom-scheduler.yaml
apiVersion: vl
kind: Pod
metadata:
  name: my-custom-scheduler
  namespace: kube-system
spec:
  containers:
  - command:
    - kube-scheduler
    - --address=127.0.0.1
    - --kubeconfig=/etc/kubernetes/scheduler.conf
    - --leader-elect=true
    - --scheduler-name=my-custom-scheduler
    - --lock-object-name=my-custom-scheduler
    image: k8s.gcr.io/kube-scheduler-amd64:vl.11.3
    name: kube-scheduler
apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
  - image: nginx
    name: nginx
  schedulerName: my-custom-scheduler

To list pods kubectl get pods View Events To view events $ kubectl get events