ansible/roles/metrics-server/tasks/main.yaml
2021-01-09 20:54:42 +03:00

12 lines
597 B
YAML

- set_fact:
metrics_server_combined_values: "{{ metrics_server_default_values | combine(metrics_server_values, recursive=true) }}"
- name: Deploy Metrics server
community.kubernetes.helm:
create_namespace: true
release_namespace: "{{ metrics_server_namespace | default('metrics-server') }}"
release_name: "{{ metrics_server_name | default('metrics-server') }}"
chart_ref: "{{ metrics_server_chart | default('bitnami/metrics-server') }}"
chart_version: "{{ metrics_server_version | default(omit) }}"
release_values: "{{ metrics_server_combined_values | from_yaml }}"