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 0761969c79..2bcd457444 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.