Aliyun Disk Kubernetes Dynamic Provisioner
- Deploy aliyundisk-provisioner to kubernetes cluster:
kubectl apply -f deploy/rbac.yaml
kubectl apply -f deploy/secret.yaml # Need to fillin your own aliyun access key
kubectl apply -f deploy/deployment.yaml
kubectl apply -f deploy/storage_class.yaml
- Use it to dynamic provsioning persistent volumes.
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: my-disk
spec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi