You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,64 @@ module "talos" {
204
204
}
205
205
```
206
206
207
+
### Mixed Worker Node Types
208
+
209
+
For more advanced use cases, you can define different types of worker nodes with individual configurations using the `worker_nodes` variable:
210
+
211
+
```hcl
212
+
module "talos" {
213
+
source = "hcloud-talos/talos/hcloud"
214
+
version = "<latest-version>"
215
+
216
+
talos_version = "v1.10.3"
217
+
kubernetes_version = "1.30.3"
218
+
219
+
hcloud_token = "your-hcloud-token"
220
+
firewall_use_current_ip = true
221
+
222
+
cluster_name = "mixed-cluster"
223
+
datacenter_name = "fsn1-dc14"
224
+
225
+
control_plane_count = 1
226
+
control_plane_server_type = "cx22"
227
+
228
+
# Define different worker node types
229
+
worker_nodes = [
230
+
# Standard x86 workers
231
+
{
232
+
type = "cx22"
233
+
labels = {
234
+
"node.kubernetes.io/instance-type" = "cx22"
235
+
}
236
+
},
237
+
# ARM workers for specific workloads with taints
238
+
{
239
+
type = "cax22"
240
+
labels = {
241
+
"node.kubernetes.io/arch" = "arm64"
242
+
"affinity.example.com" = "example"
243
+
}
244
+
taints = [
245
+
{
246
+
key = "arm64-only"
247
+
value = "true"
248
+
effect = "NoSchedule"
249
+
}
250
+
]
251
+
}
252
+
]
253
+
}
254
+
```
255
+
256
+
> [!NOTE]
257
+
> The `worker_nodes` variable allows you to:
258
+
> - Mix different server types (x86 and ARM)
259
+
> - Add custom labels to nodes
260
+
> - Apply taints for workload isolation
261
+
> - Control the count of each node type independently
262
+
>
263
+
> The legacy `worker_count` and `worker_server_type` variables are still supported for backward compatibility but are deprecated in favor of `worker_nodes`.
0 commit comments