-
Notifications
You must be signed in to change notification settings - Fork 2
/
helm.yaml
34 lines (34 loc) · 1.05 KB
/
helm.yaml
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
become: yes
tasks:
- name: Adding Tiller Serviceaccount
become_user: ubuntu
shell: kubectl create serviceaccount tiller --namespace kube-system >> tiller_ns_created.info
args:
chdir: $HOME
creates: tiller_ns_created.info
- name: Copy RBAC File
become_user: ubuntu
copy:
src: helm
dest: ~/
- name: Adding Tiller RBAC to Cluster
become_user: ubuntu
shell: kubectl create -f ~/helm/tiller_rbac.yaml >> helm_rbac_created.info
args:
chdir: $HOME
creates: helm_rbac_created.info
- name: Installing HELM
become_user: ubuntu
shell: curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash >> helm_installed.info
args:
chdir: $HOME
creates: helm_installed.info
- name: Initting HELM
become_user: ubuntu
shell: helm init --service-account tiller --upgrade >> helm_initted.info
args:
chdir: $HOME
creates: helm_initted.info
- pause:
minutes: 1