-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.yml
48 lines (44 loc) · 986 Bytes
/
install.yml
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
---
- name: Provisioning servers with common tools
hosts: all
gather_facts: no
become: yes
vars:
playbook_mode: "install"
roles:
- common
- name: Provisioning Kubernetes Controle Plane
hosts: control-plane-nodes
become: yes
vars:
cluster_cidr: 10.0.2.0/24
cluster_service_cidr: 10.0.0.0/24
cluster_name: "homelab-kubernetes"
playbook_mode: "install"
roles:
- k8s-kubectl
- k8s-etcd
- k8s-apiserver
- k8s-scheduler
- k8s-controller-manager
- name: Provisioning Kubernetes Worker Nodes
hosts: worker-nodes
become: yes
vars:
cluster_cidr: 10.0.2.0/24
cluster_dns_ip: 10.0.0.2
cluster_name: "homelab-kubernetes"
playbook_mode: "install"
distribution: "debian"
distribution_release: "buster"
roles:
- docker
- k8s-kubectl
- k8s-worker
- name: Provisioning Kubernetes API load balancers
hosts: loadbalancers
become: yes
vars:
playbook_mode: "install"
roles:
- nginx