kubespray
kubespray copied to clipboard
Add preflight network resource support for custom_cni
PR Type
/kind feature
What this PR Does / Why We Need It
- Enables the deployment of network resources such as CRDs prior to CNI
Which Issue(s) this PR Fixes
Fixes #
Special Notes for Your Reviewer
I want to enable the serviceMonitor option when installing Cilium CNI as custom_cni. However, I couldn't find a way to deploy the ServiceMonitor CRD prior to CNI installation. So I want to add a feature to deploy the prerequisite resources that should be deployed before the CNI during the custom_cni deployment process.
Additionally, I have prepared a new PR to enable pre-deployment of Ansible Roles if the pre-deployment feature for resources is merged in any form (custom_cni, generic, ...). This was necessary because while deploying Cilium CNI, I encountered an issue where the deployment of hubble-relay failed due to CoreDNS not being active when the peer service was enabled on cilium-agent. This PR aims to address that problem.
Does this PR Introduce a User-Facing Change?
No, this new method is managed by new variable custom_cni_preflight_templates
.
Add preflight network resource support for custom_cni: `custom_cni_preflight_templates`