README ¶
Kubernetes DigitalOcean provisioner
⚠
You should NOT use this provisioner for new clusters!
It is recommended to switch to the official DigitalOcean CSI driver.
The provisioner will be updated on a best-effort basis, but eventually it will be removed (k8s ~1.13-1.15).
⚠
This is an simple provisioner for DigitalOcean Block Storage.
Deploy
- Get a DigitalOcean access-token here.
base64
the token and insert it into manifests/digitalocean-secret.yaml.
Create the secret:kubectl create -f manifests/digitalocean-secret.yaml
- Deploy the RBAC policies:
kubectl create -f manifests/rbac
- Deploy the provisioner:
kubectl create -f manifests/digitalocean-provisioner.yaml
- Adjust the
hostPath
in manifests/digitalocean-flexplugin-deploy.yaml
Deploy the flex plugin "installer":kubectl create -f manifests/digitalocean-flexplugin-deploy.yaml
- Modify the zone in manifests/sc.yaml
Deploy the defaultStorageClass
:kubectl create -f manifests/sc.yaml
- (optional) Try it out with the example pod and PVC
kubectl create -f examples/pvc.yaml kubectl create -f examples/pod-application.yaml
TODO
- Support multi zones
- Rewrite flexvolume plugin in Go
- Prevent k8s from scheduling more than 5 disks to a single droplet
- Improve documentation
Click to show internal directories.
Click to hide internal directories.