Add hostpath configuration to talosctl patches for local storage
This commit is contained in:
parent
921be474f9
commit
594be97e44
@ -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
|
||||
```
|
||||
|
||||
10
talos/patches/hostpath.yaml
Normal file
10
talos/patches/hostpath.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
machine:
|
||||
kubelet:
|
||||
extraMounts:
|
||||
- destination: /var/mnt
|
||||
type: bind
|
||||
source: /var/mnt
|
||||
options:
|
||||
- bind
|
||||
- rshared
|
||||
- rw
|
||||
Loading…
Reference in New Issue
Block a user