i have a bare-metal kubernetes cluster with 1 master node and 4 worker nodes. I want to deploy my deployment objects on every 4 worker nodes but i can't. I try nodeSelector but looks like it only works on last key:value pair label.
Please help me.
i have a bare-metal kubernetes cluster with 1 master node and 4 worker nodes. I want to deploy my deployment objects on every 4 worker nodes but i can't. I try nodeSelector but looks like it only works on last key:value pair label.
Please help me.
Copyright © 2021 Jogjafile Inc.
If you want to ensure that all nodes have that pod on them you can use a DaemonSet.
You can also use affinity/anti-affinity selectors.
If you don't want to two instances are located on the same host, check following link
https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#never-co-located-in-the-same-node