mirror of
https://github.com/jcwimer/kubernetes-ansible
synced 2026-03-24 16:44:44 +00:00
34 lines
685 B
Django/Jinja
34 lines
685 B
Django/Jinja
---
|
|
|
|
ssh_key_path: {{ rke_ssh_key_location }}
|
|
|
|
cluster_name: rke_cluster_name
|
|
ignore_docker_version: true
|
|
kubernetes_version: v1.13.4-rancher1-2
|
|
system_images:
|
|
kubernetes: rancher/hyperkube:v1.13.4-rancher1
|
|
|
|
nodes:
|
|
{% for node in groups['masters'] %}
|
|
|
|
- address: {{ hostvars[node]['ansible_host'] }}
|
|
name: {{node}}
|
|
user: {{standard_user}}
|
|
role:
|
|
- controlplane
|
|
- etcd
|
|
{% endfor %}
|
|
{% for node in groups['workers'] %}
|
|
|
|
- address: {{ hostvars[node]['ansible_host'] }}
|
|
name: {{node}}
|
|
user: {{standard_user}}
|
|
role:
|
|
- worker
|
|
{% endfor %}
|
|
|
|
authentication:
|
|
strategy: x509
|
|
sans:
|
|
- "{{ vip_address }}"
|
|
- "kube.{{ domain }}" |