The snapshot-controller is a storage snapshot control add-on. This topic describes its functionality, use cases, core resources, and how to install and upgrade it.
snapshot-controller is a standard Kubernetes add-on that introduces a series of CustomResourceDefinitions (CRDs) and enables users to manage snapshots of PersistentVolumes (PVs) through a declarative API. In short, it provides unified snapshot management logic for CSI-compatible storage add-ons.
After the add-on is installed in a cluster, the system will create the following Kubernetes resources under the kube-system namespace.
tip
The preceding table only lists the main resources of the add-on, as well as resources that may be used when the add-on or the corresponding feature is configured. This helps you understand the main components of this add-on. Other resources, such as ConfigMap and Secret, related to the add-on are not described here. You should refer to the actual resources in the cluster.
For information about the historical release records of the add-on, as well as new features and optimization descriptions for each version, see Add-on release records. - In the left navigation pane, click Cluster. Click the target cluster name to go to the management page of this cluster.
- In the left navigation pane, select Addons and click the Storage tab.
- Move the pointer over the add-on card, click Deploy, and configure the add-on parameters.
- Click Confirm to finish configuration.
New versions of the add-on are released at irregular intervals to provide new features or fix known issues. When the add-on card displays that a new version is available, we recommend upgrading the add-on promptly. To ensure a smooth service transition, perform the upgrade during off-peak hours whenever possible. For upgrade procedures and considerations, see Upgrading add-ons. The stability and performance of the snapshot-controller add-on directly affect its functionality and effectiveness. We recommend enabling add-on observability in your cluster to monitor add-on health in real time. For details, see CSI Storage observability. After you enable add-on observability, you can view the preset observability dashboard for the add-on in the console. This dashboard primarily displays the real-time load and end-to-end latency of snapshot operations handled by the snapshot-controller add-on. It includes sections such as overview, snapshot creation (CSI invocation phase), and end-to-end snapshot creation (including waiting for Ready). The dashboard covers metrics such as the number of concurrent snapshot operations, QPS, average/P90/P99 latency, and latency distribution comparison among different operation stages. You can specify a custom time range for querying information and set the information refresh mode to manual or automatic refresh.
- In the left navigation pane of the cluster management page, click Monitoring center > Dashboard.
- In the left dashboard list, select Storage service monitoring > Snapshot Controller monitoring to view the monitoring dashboard.
-
VKE provides comprehensive cluster monitoring and alerting capabilities based on VMP. You can quickly create alert rule groups by using system preset templates or configure custom alert rules by using PromQL statements based on your business requirements. You can also export preset templates in YAML format, adjust the rules, and save them as custom alert templates for reuse across multiple clusters. For details, see the following topics: Preset alert templates are provided by the system based on common O&M scenarios. They are applicable to building an alert system for the first time or quickly supplementing basic monitoring items. This helps you promptly detect insufficient resources or abnormal operation of add-ons. For details about the alert rules in preset alert templates, see Preset alert templates.