diff --git a/provisioning/roles/kubernetes/tasks/helm.yaml b/provisioning/roles/kubernetes/tasks/helm.yaml index ed9ebca..8972fa9 100644 --- a/provisioning/roles/kubernetes/tasks/helm.yaml +++ b/provisioning/roles/kubernetes/tasks/helm.yaml @@ -17,3 +17,8 @@ update_cache: yes name: helm +- name: Install Helm plugin diff + become: yes + kubernetes.core.helm_plugin: + state: present + plugin_path: https://github.com/databus23/helm-diff diff --git a/provisioning/roles/kubernetes/tasks/metrics_server.yaml b/provisioning/roles/kubernetes/tasks/metrics_server.yaml index 8e192d7..b6880a2 100644 --- a/provisioning/roles/kubernetes/tasks/metrics_server.yaml +++ b/provisioning/roles/kubernetes/tasks/metrics_server.yaml @@ -1,7 +1,13 @@ - name: Add Helm repository metrics-server become: yes - command: helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/ + kubernetes.core.helm_repository: + name: metrics-server + repo_url: https://kubernetes-sigs.github.io/metrics-server/ - name: Install Helm chart metrics-server become: yes - command: helm upgrade --install metrics-server metrics-server/metrics-server -n kube-system + kubernetes.core.helm: + state: present + name: metrics-server + chart_ref: metrics-server/metrics-server + release_namespace: kube-system