Scale the pod on the same node where EBS is attached

2/27/2018

I want to scale the pods in the same worker node where already one EBS volume associated with pod is attached. How can I achieve it?

Thanks

-- Nikit Swaraj
kubernetes
kubernetes-helm
kubernetes-pvc
openshift
rancher

1 Answer

2/27/2018

you can configure PodAffinity to schedule new pods only on the same node that it is already scheduled (obviously not in case of first one).

https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#inter-pod-affinity-and-anti-affinity-beta-feature

-- Radek 'Goblin' Pieczonka
Source: StackOverflow