mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-08 22:21:16 +02:00
docs: update storage.md
Update storage.md to use `machine.nodeLabels`. Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
parent
07bb61e60c
commit
aa3640d74c
@ -85,16 +85,29 @@ This can be done with `talosctl patch machineconfig` or via config patches durin
|
|||||||
|
|
||||||
Some examples are shown below: modify as needed.
|
Some examples are shown below: modify as needed.
|
||||||
|
|
||||||
|
First create a config patch file named `mayastor-patch.yaml` with the following contents:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- op: add
|
||||||
|
path: /machine/sysctls
|
||||||
|
value:
|
||||||
|
vm.nr_hugepages: "1024"
|
||||||
|
- op: add
|
||||||
|
path: /machine/nodeLabels
|
||||||
|
value:
|
||||||
|
openebs.io/engine: mayastor
|
||||||
|
```
|
||||||
|
|
||||||
Using gen config
|
Using gen config
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
talosctl gen config my-cluster https://mycluster.local:6443 --config-patch '[{"op": "add", "path": "/machine/sysctls", "value": {"vm.nr_hugepages": "1024"}}, {"op": "add", "path": "/machine/kubelet/extraArgs", "value": {"node-labels": "openebs.io/engine=mayastor"}}]'
|
talosctl gen config my-cluster https://mycluster.local:6443 --config-patch @mayastor-patch.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Patching an existing node
|
Patching an existing node
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
talosctl patch --mode=no-reboot machineconfig -n <node ip> --patch '[{"op": "add", "path": "/machine/sysctls", "value": {"vm.nr_hugepages": "1024"}}, {"op": "add", "path": "/machine/kubelet/extraArgs", "value": {"node-labels": "openebs.io/engine=mayastor"}}]'
|
talosctl patch --mode=no-reboot machineconfig -n <node ip> --patch @mayastor-patch.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
> Note: If you are adding/updating the `vm.nr_hugepages` on a node which already had the `openebs.io/engine=mayastor` label set, you'd need to restart kubelet so that it picks up the new value, by issuing the following command
|
> Note: If you are adding/updating the `vm.nr_hugepages` on a node which already had the `openebs.io/engine=mayastor` label set, you'd need to restart kubelet so that it picks up the new value, by issuing the following command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user