1
0
mirror of https://github.com/jcwimer/startup-infrastructure synced 2026-05-21 20:19:24 +00:00

Switched from docker swarm to Kubernetes with rke

This commit is contained in:
2020-05-11 19:39:13 -04:00
parent 01f384ac14
commit 1e5724ec1d
30 changed files with 458 additions and 488 deletions

View File

@@ -9,4 +9,18 @@
copy:
src: "{{ rke_directory }}/{{ rke_cluster_name }}.rkestate"
dest: "{{ rke_node_directory }}/{{ rke_cluster_name }}.rkestate"
become: true
become: true
- name: Create .kube folder in standard users home directory
file:
path: /home/{{ standard_user }}/.kube
state: directory
become: true
delegate_to: localhost
- name: Copy kube config to standard users home directory
copy:
src: "{{ rke_directory }}/kube_config_{{ rke_cluster_name }}.yaml"
dest: /home/{{ standard_user }}/.kube/config
become: true
delegate_to: localhost