summaryrefslogtreecommitdiffstats
path: root/tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/tasks/main.yml
blob: 28c3f501668255b421b727f4c3cecb08da6a644a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
- name: include master tasks
  import_tasks: configure_master_node.yml
  when: inventory_hostname in groups['master']
  tags: deploy

- name: include folder settings for kube config
  import_tasks: foldersettings.yml
  when: inventory_hostname in groups['master']
  tags: deploy

- name: include join worker tasks
  import_tasks: workers.yml
  when: inventory_hostname in groups['workers']
  tags: deploy, join

- name: cni pre-deploy
  import_tasks: cni-pre-deploy.yml
  tags: deploy, cni

- name: deploy flannel
  import_tasks: deploy-flannel.yml
  when: inventory_hostname in groups['master']
  tags: deploy, cni

- name: clear flannel
  import_tasks: clear-flannel.yml
  when: inventory_hostname in groups['master']
  tags: clear

- name: deploy multus
  import_tasks: deploy-multus.yml
  when: inventory_hostname in groups['master']
  tags: deploy, cni

- name: clear multus
  import_tasks: clear-multus.yml
  when: inventory_hostname in groups['master']
  tags: clear

- name: deploy kubevirt-ovs
  import_tasks: deploy-kubevirt-ovs.yml
  when: inventory_hostname in groups['master']
  tags: deploy, cni

- name: clear kubevirt-ovs
  import_tasks: clear-kubevirt-ovs.yml
  when: inventory_hostname in groups['master']
  tags: clear

- name: deploy sriov
  import_tasks: deploy-sriov.yml
  when: inventory_hostname in groups['master']
  tags: deploy, cni

- name: clear sriov
  import_tasks: clear-sriov.yml
  when: inventory_hostname in groups['master']
  tags: clear

- name: deploy userspace
  import_tasks: deploy-userspace.yml
  when: inventory_hostname in groups['master']
  tags: deploy, cni

- name: clear userspace
  import_tasks: clear-userspace.yml
  when: inventory_hostname in groups['master']
  tags: clear

- name: drain and delete workers from master
  import_tasks: clear-k8s-workers-drain.yml
  when: inventory_hostname in groups['workers']
  tags: clear

- name: reset workers
  import_tasks: clear-k8s-workers-reset.yml
  when: inventory_hostname in groups['workers']
  tags: clear

- name: clear master
  import_tasks: clear-k8s-master.yml
  when: inventory_hostname in groups['master']
  tags: clear