k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
711 B
17 lines
711 B
---
|
|
- name: Metrics | Make sure Helm is installed
|
|
command: "{{ bin_dir }}/helm version"
|
|
|
|
- name: Metrics | Add coreos repo
|
|
command: "{{ bin_dir }}/helm repo add coreos https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/"
|
|
run_once: true
|
|
|
|
- name: Metrics | Install Prometheus Operator
|
|
command: "{{ bin_dir }}/helm upgrade --install prometheus-operator coreos/prometheus-operator --namespace {{ monitoring_namespace }}"
|
|
when: prometheus_operator_enabled
|
|
run_once: true
|
|
|
|
- name: Metrics | Install K8s cluster metrics
|
|
command: "{{ bin_dir }}/helm upgrade --install kube-prometheus coreos/kube-prometheus --namespace {{ monitoring_namespace }}"
|
|
when: k8s_metrics_enabled
|
|
run_once: true
|