Add control-plane toleration to Agent K8S manifests. – elastic/kibana

Summary

The K8S taint with key node-role.kubernetes.io/control-plane is set to replace the deprecated taint with key node-role.kubernetes.io/master which will be removed by Kubernetes v1.25, as described here.

Newly provisioned K8S clusters will have either both taints on the control-plane (previously known as master) node, or only the one with the new key. Example on a multi-node K8S v1.24 cluster provisioned with kind:

Screenshot 2022-08-05 at 11 32 55 AM

The effect in either case is that with our existing manifests, an Elastic Agent pod won’t be scheduled on the control-plane node. Adding a toleration to these manifests that matches the new taint key fixes this problem.

For maintainers

Related

Analogous to this change in the Agent repo:

Read more here: Source link