This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
talconfig.yaml
279 lines (260 loc) · 6.98 KB
/
talconfig.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
---
clusterName: &cluster k8s
clusterPodNets:
- 10.244.0.0/16
clusterSvcNets:
- 10.245.0.0/16
endpoint: https://k8s.${domainName}:6443
# renovate: datasource=docker depName=ghcr.io/siderolabs/installer
talosVersion: v1.6.7
# renovate: datasource=github-releases extractVersion=^v(?<version>.*)$ depName=kubernetes/kubernetes
kubernetesVersion: 1.29.2
additionalApiServerCertSans:
- ${clusterEndpointIP}
additionalMachineCertSans:
- ${clusterEndpointIP}
- k8s.${domainName}
cniConfig:
name: none
nodes:
# nuc0
- hostname: nuc0.k8s.${domainName}
ipAddress: 10.0.14.7
installDisk: /dev/sda
controlPlane: true
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: 88:ae:dd:08:ec:43
dhcp: true
vip:
ip: ${clusterEndpointIP}
nodeLabels: &cpLabels
topology.kubernetes.io/region: *cluster
node-role.kubernetes.io/control-plane: true
# nuc1
- hostname: nuc1.k8s.${domainName}
ipAddress: 10.0.14.8
installDisk: /dev/nvme0n1
controlPlane: true
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: 88:ae:dd:0e:5b:a8
dhcp: true
vip:
ip: ${clusterEndpointIP}
nodeLabels: *cpLabels
# nuc2
- hostname: nuc2.k8s.${domainName}
ipAddress: 10.0.14.9
installDisk: /dev/nvme0n1
controlPlane: true
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: 88:ae:dd:60:06:81
dhcp: true
vip:
ip: ${clusterEndpointIP}
nodeLabels: *cpLabels
# catbert
- hostname: catbert.k8s.${domainName}
ipAddress: 10.0.14.14
installDiskSelector:
busPath: /pci0000:00/0000:00:17.0/ata3/host2/target2:0:0/2:0:0:0/
controlPlane: false
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: e4:1d:2d:22:b8:d0
dhcp: true
nodeLabels: &workerLabels
node-role.kubernetes.io/worker: true
topology.kubernetes.io/region: *cluster
# dogbert
- hostname: dogbert.k8s.${domainName}
ipAddress: 10.0.14.13
installDisk: /dev/sdb
controlPlane: false
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: ac:1f:6b:0a:4b:72
dhcp: true
nodeLabels: *workerLabels
# wally
- hostname: wally.k8s.${domainName}
ipAddress: 10.0.14.16
installDisk: /dev/sde
controlPlane: false
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: e4:1d:2d:2c:84:e0
dhcp: true
nodeLabels: *workerLabels
# phil
- hostname: phil.k8s.${domainName}
ipAddress: 10.0.14.17
installDisk: /dev/sde
controlPlane: false
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: e4:1d:2d:7f:9f:e0
dhcp: true
nodeLabels: *workerLabels
# alice
- hostname: alice.k8s.${domainName}
ipAddress: 10.0.14.15
installDisk: /dev/sdb
controlPlane: false
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: e4:1d:2d:7e:af:f0
dhcp: true
nodeLabels: *workerLabels
# thing1
- hostname: thing1.k8s.${domainName}
ipAddress: 10.0.14.10
installDisk: /dev/sda
controlPlane: false
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: e4:1d:2d:2c:8b:30
dhcp: true
nodeLabels: *workerLabels
# thing2
- hostname: thing2.k8s.${domainName}
ipAddress: 10.0.14.11
installDisk: /dev/sda
controlPlane: false
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: e4:1d:2d:2b:61:30
dhcp: true
nodeLabels: *workerLabels
# work-pc
- hostname: work-pc.k8s.${domainName}
ipAddress: 10.0.14.12
installDisk: /dev/sdb
controlPlane: false
disableSearchDomain: true
nameservers:
- 10.0.4.1
networkInterfaces:
- deviceSelector:
hardwareAddr: bc:30:5b:d8:a8:dd
dhcp: true
nodeLabels: *workerLabels
controlPlane:
patches:
- |-
machine:
features:
kubernetesTalosAPIAccess:
enabled: true
allowedRoles:
- os:admin
allowedKubernetesNamespaces:
- kube-system
inlinePatch:
cluster:
allowSchedulingOnMasters: false
proxy:
disabled: true
machine:
install:
image: ghcr.io/siderolabs/installer:v1.7.1
legacyBIOSSupport: true
features:
kubePrism:
enabled: true
port: 7445
sysctls:
fs.inotify.max_user_watches: 1048576
fs.inotify.max_user_instances: 8192
network:
extraHostEntries:
- ip: ${clusterEndpointIP}
aliases:
- k8s.${domainName}
- ip: 10.0.14.1
aliases:
- unifi.${domainName}
time:
disabled: false
servers:
- time.cloudflare.com
kubelet:
extraArgs:
feature-gates: GracefulNodeShutdown=true
rotate-server-certificates: true
files:
- content: |
[plugins."io.containerd.grpc.v1.cri"]
enable_unprivileged_ports = true
enable_unprivileged_icmp = true
path: /etc/cri/conf.d/20-customization.part
op: create
worker:
inlinePatch:
machine:
install:
image: ghcr.io/siderolabs/installer:v1.7.1
legacyBIOSSupport: true
features:
kubePrism:
enabled: true
port: 7445
sysctls:
fs.inotify.max_user_watches: 1048576
fs.inotify.max_user_instances: 8192
vm.nr_hugepages: 1024
network:
extraHostEntries:
- ip: ${clusterEndpointIP}
aliases:
- k8s.${domainName}
- ip: 10.0.14.1
aliases:
- unifi.${domainName}
time:
disabled: false
servers:
- time.cloudflare.com
kubelet:
extraArgs:
feature-gates: GracefulNodeShutdown=true
rotate-server-certificates: true
files:
- content: |
[plugins."io.containerd.grpc.v1.cri"]
enable_unprivileged_ports = true
enable_unprivileged_icmp = true
path: /etc/cri/conf.d/20-customization.part
op: create