digitalocean-csi
by Ankra
DigitalOcean CSI block-storage driver - controller StatefulSet, node DaemonSet, snapshot controller, snapshot CRDs, and the do-block-storage StorageClasses, chart-ified from the upstream release manifests.
About this chart
digitalocean-csi
DigitalOcean CSI block-storage driver packaged as a Helm chart.
Upstream ships raw release manifests only (no Helm chart); this chart vendors
digitalocean/csi-digitalocean
release manifests (crds.yaml, driver.yaml, snapshot-controller.yaml)
under vendor/ and templates them with the conventions used across the
ankra-charts repository.
The chart ships:
- the controller StatefulSet (provisioner, attacher, snapshotter, resizer sidecars plus the DO plugin),
- the node DaemonSet (driver registrar + privileged plugin, with the automount-udev-rule deleter init container),
- the external snapshot-controller and the three
snapshot.storage.k8s.ioCRDs (undercrds/, installed once by Helm), - the four upstream
do-block-storage*StorageClasses and the default VolumeSnapshotClass.
Requirements
- Kubernetes >= 1.27 running on DigitalOcean Droplets.
- A DigitalOcean API token with read/write scope.
Install
helm install digitalocean-csi oci://ghcr.io/ankraio/ankra-charts/digitalocean-csi \
--version 0.1.0 -n kube-system \
--set credentials.token="$DIGITALOCEAN_ACCESS_TOKEN"
Reusing an existing Secret (the upstream convention is a Secret named
digitalocean in kube-system with the token under the access-token key,
shared with the digitalocean-ccm chart):
helm install digitalocean-csi oci://ghcr.io/ankraio/ankra-charts/digitalocean-csi \
--version 0.1.0 -n kube-system \
--set credentials.create=false \
--set credentials.existingSecret=digitalocean
Key values
| Value | Default | Description |
|---|---|---|
credentials.create | true | Render a Secret from credentials.token. |
credentials.existingSecret | "" | Use an externally-managed Secret instead. |
controller.nodeSelector | {} | Exact-match pin. Prefer controller.affinity with control-plane label Exists for kubeadm+k3s. |
storageClasses.defaultClass | do-block-storage | Which class carries the default-class annotation. |
snapshotController.enabled | true | Disable when the cluster already runs an external snapshot-controller. |
node.kubeletDir | /var/lib/kubelet | Kubelet data dir for non-standard distributions. |
images.csiDriver.digest | "" | Optional digest pin, takes precedence over the tag. |
See values.yaml for the full surface.
Upgrades
./scripts/sync-upstream.sh do-csi [version] re-vendors the upstream release
manifests, bumps appVersion, re-splits the CRDs, and syncs the sidecar image
tags. The charts-digitalocean-sync workflow runs it daily and opens a
rolling PR.
License
Apache-2.0, matching upstream.
Deploy digitalocean-csi with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has digitalocean-csi on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdigitalocean-csi is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply