From d3774bda7bfc8e59f67765e33c76676466ab0382 Mon Sep 17 00:00:00 2001 From: mlaguilharre Date: Tue, 2 Jun 2026 16:03:41 +0200 Subject: [PATCH] Update disk-filter-and-auto-provision.md Add details on globbing devices pattern. Signed-off-by: mlaguilharre --- .../disk-filter-and-auto-provision.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/versioned_docs/version-v1.8/advanced/disk-filter-and-auto-provision.md b/versioned_docs/version-v1.8/advanced/disk-filter-and-auto-provision.md index 0761969c79d..2bcd4574442 100644 --- a/versioned_docs/version-v1.8/advanced/disk-filter-and-auto-provision.md +++ b/versioned_docs/version-v1.8/advanced/disk-filter-and-auto-provision.md @@ -60,6 +60,23 @@ The `hostname` field is **required** for each rule and supports regex patterns f When using the `hostname: "*"` pattern, the configuration will be applied to **all nodes** in the cluster. ::: +## Devices Pattern +Devices list supports regex patterns for flexible device matching. +The following example will automatically provision any ssd / nvme: +``` +apiVersion: v1 +kind: ConfigMap +metadata: + name: harvester-node-disk-manager + namespace: harvester-system +data: + autoprovision.yaml: | + - hostname: "*" + devices: + - "/dev/sd*" + - "/dev/nvme*" +``` + ## Filters Configuration @@ -131,4 +148,4 @@ autoprovision.yaml: | ## Migration from Legacy Setting -If you are currently using the `auto-disk-provision-paths` setting, consider migrating to this ConfigMap approach for better flexibility and control. For more information about the legacy setting, see the [`auto-disk-provision-paths`](./settings.md#auto-disk-provision-paths-experimental) setting documentation. \ No newline at end of file +If you are currently using the `auto-disk-provision-paths` setting, consider migrating to this ConfigMap approach for better flexibility and control. For more information about the legacy setting, see the [`auto-disk-provision-paths`](./settings.md#auto-disk-provision-paths-experimental) setting documentation.