forked from jonashackt/kubernetes-the-ansible-way
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-external-access.yml
34 lines (31 loc) · 926 Bytes
/
k8s-external-access.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- hosts: master-0
become: yes
roles:
- { role: smoke-test, tags: smoketest }
- hosts: external
become: yes
roles:
- { role: kubectl-access,
path_ca: "/vagrant/certificates/ca.pem",
path_cert: "/vagrant/certificates/admin.pem",
path_key: "/vagrant/certificates/admin-key.pem",
tags: externalaccess }
- { role: helm-tiller, tags: helm }
- hosts: master-0
become: yes
roles:
- { role: dashboard, tags: dashboard }
- hosts: localhost
connection: local
roles:
- { role: kubectl-access,
path_ca: "certificates/ca.pem",
path_cert: "certificates/admin.pem",
path_key: "certificates/admin-key.pem",
tags: localaccess }
tasks:
- name: Congratulations!
debug:
msg:
- "Your kubernetes-the-ansible-way cluster is now fully ready!"
- "Simply use `kubectl` command - everything is initialized for you!"