kubeasz/roles/cluster-addon/tasks/main.yml

29 lines
925 B
YAML
Raw Normal View History

- name: 获取所有已经创建的POD信息
2021-01-11 19:02:34 +08:00
command: "{{ base_dir }}/bin/kubectl get pod --all-namespaces"
register: pod_info
2022-11-28 20:49:31 +08:00
tags: force_change_certs
2021-01-11 19:02:34 +08:00
- import_tasks: coredns.yml
when: '"coredns" not in pod_info.stdout or CHANGE_CA|bool'
2018-06-17 23:19:04 +08:00
2021-01-13 21:27:18 +08:00
- import_tasks: nodelocaldns.yml
when: '"node-local-dns" not in pod_info.stdout or CHANGE_CA|bool'
2021-01-13 21:27:18 +08:00
2021-01-11 19:02:34 +08:00
- import_tasks: metrics-server.yml
when: '"metrics-server" not in pod_info.stdout or CHANGE_CA|bool'
2021-01-11 19:02:34 +08:00
- import_tasks: dashboard.yml
when: '"kubernetes-dashboard" not in pod_info.stdout or CHANGE_CA|bool'
2018-06-17 23:19:04 +08:00
2021-01-11 11:12:14 +08:00
- import_tasks: prometheus.yml
when: 'prom_install == "yes"'
2021-01-11 11:12:14 +08:00
2021-03-27 00:09:42 +08:00
- import_tasks: nfs-provisioner.yml
when: '"nfs-client-provisioner" not in pod_info.stdout or CHANGE_CA|bool'
2022-06-16 12:37:24 +08:00
- import_tasks: cilium_connectivity_check.yml
when: 'CLUSTER_NETWORK == "cilium"'
2022-06-17 16:29:23 +08:00
- import_tasks: network_check.yml
when: 'network_check_enabled|bool and CLUSTER_NETWORK != "cilium"'