Add hostpath configuration to talosctl patches for local storage

This commit is contained in:
Marco van Zijl 2025-05-09 18:57:49 +02:00
parent 921be474f9
commit 594be97e44
2 changed files with 12 additions and 0 deletions

View File

@ -89,6 +89,7 @@ talosctl gen config \
--config-patch @patches/disk.yaml \
--config-patch @patches/vip.yaml \
--config-patch @patches/metrics.yaml \
--config-patch @patches/hostpath.yaml \
$CLUSTER_NAME \
$API_ENDPOINT
```
@ -107,6 +108,7 @@ talosctl gen config \
--config-patch @patches/discovery.yaml \
--config-patch @patches/diskselector.yaml \
--config-patch @patches/metrics.yaml \
--config-patch @patches/hostpath.yaml \
$CLUSTER_NAME \
$API_ENDPOINT
```

View File

@ -0,0 +1,10 @@
machine:
kubelet:
extraMounts:
- destination: /var/mnt
type: bind
source: /var/mnt
options:
- bind
- rshared
- rw