statefulset-scheduler (aka sfs-scheduler)

Installation

I already upload docker image to docker.io. You can check here.

kubectl apply -f resources.yaml

Configure nodes

You need to labels your nodes which you want statically attach you pod. It is always scheduel this node.

kubectl label node your_nodename web-0=true #web-o is web statefulset application. You can see example in repository.
kubectl label node your_other_nodename web-1=true

Install statefulset application

You need to set schedulerName=sfs-scheduler because we have our scheduler now. Its name is sfs-scheduler. I already set in example statefulset resource.

kubectl apply -f example-statefulset.yaml

When you apply example statefulset application you will see web-0 and web-1 scheduled to your chosen nodes.