Hello all, I'm on the personal schedule creation (video 77 & 78) I've create . . .

Krasimir Karov:
Hello all, I’m on the personal schedule creation (video 77 & 78)
I’ve created the personal schedule:

controlplane $ kubectl get pods -n kube-system
NAME                                   READY   STATUS    RESTARTS   AGE
coredns-f9fd979d6-77zzb                1/1     Running   0          18m
coredns-f9fd979d6-dq5m7                1/1     Running   0          18m
etcd-controlplane                      1/1     Running   0          18m
kube-apiserver-controlplane            1/1     Running   0          18m
kube-controller-manager-controlplane   1/1     Running   0          18m
kube-flannel-ds-amd64-99hzr            1/1     Running   0          18m
kube-flannel-ds-amd64-lqzn7            1/1     Running   0          18m
kube-proxy-nfm9h                       1/1     Running   0          18m
kube-proxy-qtkhm                       1/1     Running   0          18m
kube-scheduler-controlplane            1/1     Running   0          18m
my-scheduler                           1/1     Running   0          11m

and my-scheduler is present. I create the pod

controlplane $ cat nginx-pod.yaml 
apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
  -  image: nginx
     name: nginx
  schedulerName: my-schedule

but it is still not shown as scheduled by my-schedule in kubectl describe pods nginx:

Events:
  Type    Reason     Age    From             Message
  ----    ------     ----   ----             -------
  Normal  Scheduled  6m40s                   Successfully assigned default/nginx to node01
  Normal  Pulling    6m40s  kubelet, node01  Pulling image "nginx"
  Normal  Pulled     6m39s  kubelet, node01  Successfully pulled image "nginx" in 497.613871ms
  Normal  Created    6m39s  kubelet, node01  Created container nginx
  Normal  Started    6m39s  kubelet, node01  Started container nginx

What am I missing?

Mohamed Ayman:
Can you please try this yaml file as it is working fine with me

apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
 schedulerName: my-scheduler
  containers:
  - image: nginx
   name: nginx

Tej_Singh_Rana:
Hello, @Krasimir Karov
Please check your scheduler name in your pod definition file. It’s “my-schedule” instead of “my-scheduler”. Letter “r” is missing.