Skip to content

Commit ce23227

Browse files
committed
install helm as prerequisite
1 parent c427c62 commit ce23227

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

kubetest2-tf/data/k8s-ansible/install-k8s-monitoring.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@
99
changed_when: false
1010
delegate_to: "{{ groups['masters'][0] }}"
1111

12+
- name: Install Helm
13+
hosts: masters
14+
become: yes
15+
tasks:
16+
- name: Download Helm install script
17+
ansible.builtin.get_url:
18+
url: https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
19+
dest: /tmp/get_helm.sh
20+
mode: '0700'
21+
delegate_to: "{{ groups['masters'][0] }}"
22+
23+
- name: Run Helm install script
24+
ansible.builtin.command: /tmp/get_helm.sh
25+
args:
26+
chdir: /tmp
27+
delegate_to: "{{ groups['masters'][0] }}"
28+
1229
- name: Deploy kube-prometheus-stack to Kubernetes
1330
hosts: masters
1431
become: yes

0 commit comments

Comments
 (0)