fix: pin tailscale operator to control-plane node for DNS stability
Some checks failed
Deploy Cluster / Terraform (push) Successful in 44s
Deploy Cluster / Ansible (push) Has been cancelled

This commit is contained in:
2026-03-02 23:32:36 +00:00
parent 3686249e31
commit 210b617cc9
2 changed files with 18 additions and 0 deletions

View File

@@ -7,3 +7,11 @@ tailscale_oauth_client_secret: ""
tailscale_operator_default_tags:
- "tag:k8s-operator"
tailscale_operator_node_selector:
kubernetes.io/hostname: "k8s-cluster-cp-1"
tailscale_operator_tolerations:
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"

View File

@@ -6,5 +6,15 @@ operatorConfig:
{% for tag in tailscale_operator_default_tags %}
- "{{ tag }}"
{% endfor %}
nodeSelector:
{% for key, value in tailscale_operator_node_selector.items() %}
{{ key }}: "{{ value }}"
{% endfor %}
tolerations:
{% for tol in tailscale_operator_tolerations %}
- key: "{{ tol.key }}"
operator: "{{ tol.operator }}"
effect: "{{ tol.effect }}"
{% endfor %}
installCRDs: true