2 {% for node in groups['kubernetes'] %}
3 - address: "{{ hostvars[node].external_ip | default(hostvars[node].cluster_ip) }}"
5 internal_address: "{{ hostvars[node].cluster_ip }}"
7 {% if node in groups['kubernetes-control-plane'] %}
10 {% if node in groups['kubernetes-node'] %}
13 {% if node in groups['kubernetes-etcd'] %}
16 hostname_override: "{{ node }}"
17 user: "{{ rke_username }}"
18 docker_socket: /var/run/docker.sock
20 ssh_key_path: "{{ cluster_config_dir }}/cluster_key"
28 {% if rke_etcd.enabled_custom_etcd_storage %}
30 data-dir: "{{ rke_etcd.storage_mountpoint }}"
32 - "{{ rke_etcd.storage_path }}:{{ rke_etcd.storage_mountpoint }}"
52 service_cluster_ip_range: 10.43.0.0/16
53 service_node_port_range: ""
54 pod_security_policy: false
55 always_pull_images: false
61 cluster_cidr: 10.42.0.0/16
62 service_cluster_ip_range: 10.43.0.0/16
71 dynamic-config-dir: "/kubelet-dynamic-config-dir"
72 config: "/kubelet-static-config.yml"
73 feature-gates: {{ kubelet.feature_gates }}
75 - "{{ kubernetes_config_dir }}/{{ kubelet.static_config }}:/kubelet-static-config.yml:ro"
77 cluster_domain: cluster.local
78 infra_container_image: ""
79 cluster_dns_server: 10.43.0.10
95 - "{{ cluster_config_dir }}/kubernetes-dashboard.yml"
96 - "{{ cluster_config_dir }}/k8s-dashboard-user.yml"
98 ssh_key_path: "{{ cluster_config_dir }}/cluster_key"
100 ssh_agent_auth: false
104 ignore_docker_version: false
105 kubernetes_version: {{ rke_kubernetes_version }}
106 private_registries: []