Kubernetes Scheduler Extenders - when are they invoked?
They are invoked as the last step for scheduling decisions and it picks the pods that have a specific schedulerName
in the pod spec. Number 3 here:
(3) implementing a "scheduler extender" process that the standard Kubernetes scheduler calls out to as a final pass when making scheduling decisions.
So if your scheduler's name is my-scheduler
📆 a pod spec would look something like this:
apiVersion: v1kind: Podmetadata: name: test-podspec: schedulerName: my-scheduler 👈 📆 containers: - name: nginx image: nginx ports: - containerPort: 80
In the logs it would show like this:
$ kubectl describe pod test-podName: test-pod...Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 25s my-scheduler 👈 📆 Successfully assigned test-pod to minikube