mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-14 14:01:12 +01:00
docs: update local-storage.md
Add an explicit example of kubelet config. Signed-off-by: Rémi Paulmier <remi.paulmier@gmail.com> Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
parent
7e19d5c4c7
commit
9adaf7f012
@ -81,3 +81,19 @@ There are three patches applied:
|
|||||||
* change default `/opt/local-path-provisioner` path to `/var/local-path-provisioner`
|
* change default `/opt/local-path-provisioner` path to `/var/local-path-provisioner`
|
||||||
* make `local-path` storage class the default storage class (optional)
|
* make `local-path` storage class the default storage class (optional)
|
||||||
* label the `local-path-storage` namespace as privileged to allow privileged pods to be scheduled there
|
* label the `local-path-storage` namespace as privileged to allow privileged pods to be scheduled there
|
||||||
|
|
||||||
|
As for the `hostPath` mounts (see above), this will require the `kubelet` to bind mount the node's folder you chose (eg: `/var/local-path-provisioner`).
|
||||||
|
Otherwise, you'll have erratic behavior, especially when using the `subPath` statement in a `volumeMount`, which may lead to data loss and/or data never freed after PV deletion.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
machine:
|
||||||
|
kubelet:
|
||||||
|
extraMounts:
|
||||||
|
- destination: /var/local-path-provisioner
|
||||||
|
type: bind
|
||||||
|
source: /var/local-path-provisioner
|
||||||
|
options:
|
||||||
|
- bind
|
||||||
|
- rshared
|
||||||
|
- rw
|
||||||
|
```
|
||||||
|
|||||||
@ -81,3 +81,19 @@ There are three patches applied:
|
|||||||
* change default `/opt/local-path-provisioner` path to `/var/local-path-provisioner`
|
* change default `/opt/local-path-provisioner` path to `/var/local-path-provisioner`
|
||||||
* make `local-path` storage class the default storage class (optional)
|
* make `local-path` storage class the default storage class (optional)
|
||||||
* label the `local-path-storage` namespace as privileged to allow privileged pods to be scheduled there
|
* label the `local-path-storage` namespace as privileged to allow privileged pods to be scheduled there
|
||||||
|
|
||||||
|
As for the `hostPath` mounts (see above), this will require the `kubelet` to bind mount the node's folder you chose (eg: `/var/local-path-provisioner`).
|
||||||
|
Otherwise, you'll have erratic behavior, especially when using the `subPath` statement in a `volumeMount`, which may lead to data loss and/or data never freed after PV deletion.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
machine:
|
||||||
|
kubelet:
|
||||||
|
extraMounts:
|
||||||
|
- destination: /var/local-path-provisioner
|
||||||
|
type: bind
|
||||||
|
source: /var/local-path-provisioner
|
||||||
|
options:
|
||||||
|
- bind
|
||||||
|
- rshared
|
||||||
|
- rw
|
||||||
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user