linode / linode-blockstorage-csi-driver

Container Storage Interface (CSI) Driver for Linode Block Storage
Apache License 2.0
66 stars 55 forks source link

Updates CSI dependencies #58

Closed phillc closed 4 years ago

phillc commented 4 years ago

I pushed a canary image to docker hub

I created an lke cluster with two nodes

I ran kubectl apply -f ./e2e/test/manifest/linode-blockstorage-csi-driver.yaml (the manifest generated in this repo that is pointed at the canary image)

I applied this manifest:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc-test
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi
  storageClassName: linode-block-storage
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80
        volumeMounts:
        - mountPath: /testmount
          name: pvc-test
      volumes:
      - name: pvc-test
        persistentVolumeClaim:
          claimName: pvc-test

And I see a bound pvc

kubectl describe pvc
Name:          pvc-test
Namespace:     default
StorageClass:  linode-block-storage
Status:        Bound
Volume:        pvc-ee416632c50b403f
Labels:        <none>
Annotations:   pv.kubernetes.io/bind-completed: yes
               pv.kubernetes.io/bound-by-controller: yes
               volume.beta.kubernetes.io/storage-provisioner: linodebs.csi.linode.com
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      10Gi
Access Modes:  RWO
VolumeMode:    Filesystem
Mounted By:    nginx-deployment-5dcf9ccb57-lkcqs
Events:
  Type    Reason                Age                From                                                                                  Message
  ----    ------                ----               ----                                                                                  -------
  Normal  Provisioning          59s                linodebs.csi.linode.com_csi-linode-controller-0_25108b18-f391-11ea-a83b-d61004009525  External provisioner is provisioning volume for claim "default/pvc-test"
  Normal  ExternalProvisioning  55s (x2 over 67s)  persistentvolume-controller                                                           waiting for a volume to be created, either by external provisioner "linodebs.csi.linode.com" or manually created by system administrator