Deploy sidecar on specific Kubernetes nodes
There are many ways to specify to which nodes your sidecar should and should not be scheduled to.
cyral-sidecar chart, use the variable
nodeSelector to force
your sidecar pods to run on a specific set of Kubernetes cluster
nodes. The syntax uses a label-value pair to specify the nodes:
To learn more about node selectors, check out kubernetes own documentation on it.
To set the node affinity for the pods, use the variable
affinity. This will let you use
a very expressive language to define affinities and anti affinities for each pod on the deployment.
- key: kubernetes.io/e2e-az-name
- weight: 1
- key: another-node-label-key
To learn more about affinity and anti affinity, check out kubernetes own documentation on it.
You can set tolerations for your pod, so that it doesn't get scheduled to a tainted
node. To set the tolerations use the variable
- key: "key1"
To learn more about taints and tolerations, check out kubernetes own documentation on it.