Using a Custom Kubernetes Scheduler
Building your own fully featured scheduler is out of the scope of this workshop. However, it is important to understand that the Kubernetes platform allows you to write your own scheduler if your use case requires it, although it is not recommended to use a custom scheduler unless you have a very specialized use case.
A custom scheduler runs as a normal Pod. You can specify in the definition of the Pod running your application to use the custom scheduler. You can add a schedulerName
field in the Pod specification with the name of the custom scheduler as shown in this sample definition:
apiVersion: v1 kind: Pod metadata: name: pod-with-custom-scheduler spec: containers: - name: mutating-pod-example-container image: k8s.gcr.io/busybox command: [ "/bin/sh", "-c", "while :; do echo '.'; sleep...