1
0
mirror of https://github.com/jcwimer/kubernetes-ansible synced 2026-05-22 19:54:35 +00:00

Changed from Kubeadm to RKE for deployment

This commit is contained in:
2019-05-03 15:10:23 -04:00
parent 0537239d74
commit fc94d74b32
16 changed files with 477 additions and 83 deletions

View File

@@ -0,0 +1,34 @@
---
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 }}"