token: "{{ rke2.token }}"
node-ip: "{{ rke2_node_ip }}"
data-dir: "{{ cluster.dataDir }}"
cluster-cidr: "{{ cluster.podCidr }}"
service-cidr: "{{ cluster.serviceCidr }}"
cluster-domain: "{{ cluster.clusterDomain }}"
write-kubeconfig-mode: "{{ cluster.writeKubeconfigMode }}"
tls-san:
  - "{{ cluster.apiEndpoint }}"
embedded-registry: {{ cluster.embeddedRegistry | bool | lower }}
{% if not rke2_is_bootstrap_server %}
server: "https://{{ cluster.apiEndpoint }}:{{ cluster.registrationPort }}"
{% endif %}
node-label:
  - "node-role.trackwalker.io/server=true"
{% if inventory_hostname in groups.get("gpu_workers", []) %}
  - "node-role.trackwalker.io/gpu=true"
{% endif %}
