-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainerlab.yaml
103 lines (79 loc) · 1.77 KB
/
containerlab.yaml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# VM Deploy, Guest OS customizationa nd Delete roles
- hosts: containerlab
connection: local
tags: deploy
gather_facts: no
tasks:
- name: Deploy the kubernetes servers
include_role:
name: deploy
- hosts: nodes
connection: ssh
tags: oscustom
gather_facts: no
tasks:
- ping:
- name: Customize the kubernetes servers
include_role:
name: gocustom
- hosts: containerlab
connection: local
tags: delete
gather_facts: no
tasks:
- name: Delete the kubernetes server
include_role:
name: delete
# VM snapshot managment roles
- hosts: containerlab
connection: local
tags: vmsnapshot
gather_facts: no
tasks:
- name: Take the snapshot of kubernetes servers
include_role:
name: vmsnapshot
- hosts: containerlab
connection: local
tags: vmsnapshotrevert
gather_facts: no
tasks:
- name: Revert the snapshot of kubernetes servers
include_role:
name: vmsnapshotrevert
- hosts: containerlab
connection: local
tags: vmsnapshotremove
gather_facts: no
tasks:
- name: Remove the snapshot of kubernetes servers
include_role:
name: vmsnapshotremove
# Kubernetes Cluster Configuration foles
- hosts: master
connection: ssh
tags: mastersetup
gather_facts: no
tasks:
- ping:
- name: Setup the kubernetes master node
include_role:
name: mastersetup
- hosts: workers
connection: ssh
tags: nodesetup
gather_facts: no
tasks:
- ping:
- name: Setup the the kubernetes worker nodes
include_role:
name: nodesetup
- hosts: master
connection: ssh
tags: nodelabel
gather_facts: no
tasks:
- ping:
- name: Label the kubernetes worker nodes
include_role:
name: nodelabel