The repo is for trying to implements such a scheduler: tektoncd/pipeline#3052
make image
docker push
kubectl apply -f manifests/
kubectl create -f manifests/sample/pods.yaml
The scheduler
is based on Scheduler plugin framework
Use special labels of pod
to mark the group of pods.
labels:
pod-group.scheduling.sigs.k8s.io/name: test
pod-group.scheduling.sigs.k8s.io/total: "2"
The pod
s in same pod-group
will be scheduler to same node if the node can satisfy the resource requirement of whole group.