kubeasz/roles/cluster-addon/tasks/metrics-server.yml

11 lines
343 B
YAML
Raw Normal View History

- name: 准备 metrics-server的部署文件
template: src=metrics-server/components.yaml.j2 dest={{ cluster_dir }}/yml/metrics-server.yaml
run_once: true
connection: local
2021-01-11 19:02:34 +08:00
- name: 创建 metrics-server部署
shell: "{{ base_dir }}/bin/kubectl apply -f {{ cluster_dir }}/yml/metrics-server.yaml"
2021-01-11 19:02:34 +08:00
run_once: true
connection: local