-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtypical-cluster.yaml
106 lines (97 loc) · 2.53 KB
/
typical-cluster.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
104
105
106
node_defaults:
keyfile: "/home/username/.ssh/id_rsa"
password: '{{ env.PASS }}' #Either keyfile or password can be used.
username: "centos"
vrrp_ips:
- 192.168.0.250
nodes:
- name: "k8s-lb-1"
address: "10.101.0.1"
internal_address: "192.168.0.1"
roles: ["balancer"]
- name: "k8s-lb-2"
address: "10.101.0.2"
internal_address: "192.168.0.2"
roles: ["balancer"]
- name: "k8s-control-plane-1"
address: "10.101.0.3"
internal_address: "192.168.0.3"
roles: ["control-plane"]
- name: "k8s-control-plane-2"
address: "10.101.0.4"
internal_address: "192.168.0.4"
roles: ["control-plane"]
- name: "k8s-control-plane-3"
address: "10.101.0.5"
internal_address: "192.168.0.5"
roles: ["control-plane"]
- name: "k8s-worker-1"
address: "10.101.0.6"
internal_address: "192.168.0.6"
roles: ["worker"]
- name: "k8s-worker-2"
address: "10.101.0.7"
internal_address: "192.168.0.7"
roles: ["worker"]
- name: "k8s-worker-3"
address: "10.101.0.8"
internal_address: "192.168.0.8"
roles: ["worker"]
cluster_name: "k8s.example.com"
services:
resolv.conf:
search: default
nameservers:
- 1.1.1.1
- 1.0.0.1
- 2606:4700:4700::1111
- 2606:4700:4700::1001
ntp:
# For RHEL OS use chrony. Uncomment and customize the following section:
# chrony:
# servers:
# - 0.de.pool.ntp.org iburst
# - 1.de.pool.ntp.org iburst
# makestep: 5 10
# rtcsync: True
# For Debian OS use timesyncd:
timesyncd:
Time:
NTP:
- 0.de.pool.ntp.org
- 1.de.pool.ntp.org
FallbackNTP:
- 2.de.pool.ntp.org
- 3.de.pool.ntp.org
RootDistanceMaxSec: 10
PollIntervalMinSec: 64
PollIntervalMaxSec: 1024
packages:
package_manager:
replace-repositories: true
# For RHEL OS use yum-like format:
repositories:
centos-sclo-haproxy18:
name: "CentOS SCLO rh-haproxy18"
enabled: 1
gpgcheck: 0
baseurl: "http://mirror.centos.org/centos/7/sclo/x86_64/rh/rh-haproxy18/"
# For Debian OS use apt-like format:
# repositories:
# - "deb [arch=amd64 trusted=yes] http://example.com/deb/ubuntu/ focal main restricted"
install:
include:
- ethtool
- ebtables
- socat
- curl
- openssl
- unzip
- policycoreutils-python
rbac:
accounts:
- name: superadmin
role: cluster-admin
plugins:
kubernetes-dashboard:
install: true