We need to adjust some changes on the worker nodes and a cloud-init script would be the best for it because if we use auto scaling features we have to automate these changes somehow.
I have found this which is useful when a single instance is created:
https://help.ovhcloud.com/csm/en-public-cloud-compute-launch-script-at-instance-creation?id=kb_article_view&sysparm_article=KB0050912
How should we adjust it on our nodepool settings to reach that goal?
I am also aware that you can customize a nodepool from Terraform or Kubernetes CRD (they give no chance to add scripts at launch time to nodes):
https://help.ovhcloud.com/csm/en-public-cloud-kubernetes-node-pools-crd?id=kb_article_view&sysparm_article=KB0049916
https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_kube_nodepool
Kubernetes-old - How to execute cloud-init script on managed Kubernetes worker nodes during startup?
Related questions
- About the Kubernetes category
7954
03.02.2020 16:20
- Volume bloqué dans un état incohérent et impossible de le supprimer
2964
04.08.2020 13:57
- How to get X-Real-Ip
2705
10.06.2024 14:04
- Problem with Kubernetes Octavia Ingress when using with Gitlab AutoDevops
2534
25.04.2022 08:59