Vibhas:
Hello Guys , Any idea why busybox pod gets stuck in PENDING state when trying to schedule using custom scheduler as below. It works when I don’t use custom scheduler. I have deployed kubernetes v1.21 using kubeadm
apiVersion: v1
2 kind: Pod
3 metadata:
4 creationTimestamp: null
5 labels:
6 component: kube-scheduler
7 tier: control-plane
8 name: custom-scheduler
9 namespace: kube-system
10 spec:
11 containers:
12 - command:
13 - kube-scheduler
14 - --authentication-kubeconfig=/etc/kubernetes/scheduler.conf
15 - --authorization-kubeconfig=/etc/kubernetes/scheduler.conf
16 - --bind-address=127.0.0.1
17 - --kubeconfig=/etc/kubernetes/scheduler.conf
18 - --leader-elect=false # Tryed to set true but still doesn't work
19 - --scheduler-name=custom-scheduler
20 - --lock-object-name=custom-scheduler #Removed this option but still doesn't work
21 - --port=0 # Removed this option but still doesn't work
22. - --secure-port=10260 #Diff than primary scheduler
23 ... changed liveness and readiness probe to 10260