Re:Kubernaughty: A collection of documentation, how-tos, too...
by streetcat1 on Wednesday January 15, 2020 @09:46PM
(#22061254)
So there are two types of affinity: Node affinity and Pod affinity. Node affinity would tell the scheduler to prefer a Node. Pod Affinity would tell the scheduler to prefer other Pods location.
But if you want several containers to always be deployed together, you want to put them in the same pod. You do this in the deployment yaml.
https://kubernetes.io/docs/concepts/workloads/pods/pod-overv... https://kubernetes.io/docs/tasks/run-application/run-statele...