2019-05-29 20:45:25 +08:00
|
|
|
- name: 获取所有已经创建的POD信息
|
2021-01-11 19:02:34 +08:00
|
|
|
command: "{{ base_dir }}/bin/kubectl get pod --all-namespaces"
|
2019-05-29 20:45:25 +08:00
|
|
|
register: pod_info
|
2022-11-28 20:49:31 +08:00
|
|
|
tags: force_change_certs
|
2018-08-31 22:58:44 +08:00
|
|
|
|
2021-01-11 19:02:34 +08:00
|
|
|
- import_tasks: coredns.yml
|
2022-11-27 20:42:58 +08:00
|
|
|
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
|
2022-11-27 20:42:58 +08:00
|
|
|
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
|
2022-11-27 20:42:58 +08:00
|
|
|
when: '"metrics-server" not in pod_info.stdout or CHANGE_CA|bool'
|
2019-06-13 17:16:52 +08:00
|
|
|
|
2021-01-11 19:02:34 +08:00
|
|
|
- import_tasks: dashboard.yml
|
2022-11-27 20:42:58 +08:00
|
|
|
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
|
2022-06-07 19:33:50 +08:00
|
|
|
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
|
2022-11-27 20:42:58 +08:00
|
|
|
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
|
2022-11-26 15:19:16 +08:00
|
|
|
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"'
|