diff --git a/files/linode/csi-linode-controller-StatefulSet.yaml b/files/linode/csi-linode-controller-StatefulSet.yaml index e61a3ad..8a5767e 100644 --- a/files/linode/csi-linode-controller-StatefulSet.yaml +++ b/files/linode/csi-linode-controller-StatefulSet.yaml @@ -4,6 +4,8 @@ apiVersion: apps/v1 metadata: name: csi-linode-controller namespace: kube-system + labels: + app: csi-linode-controller spec: serviceName: "csi-linode" replicas: 1 @@ -34,7 +36,7 @@ spec: mountPath: /scripts containers: - name: csi-provisioner - image: quay.io/k8scsi/csi-provisioner:v1.0.0 + image: quay.io/k8scsi/csi-provisioner:v1.1.0 args: - "--volume-name-prefix=pvc" - "--volume-name-uuid-length=16" @@ -48,7 +50,7 @@ spec: - name: socket-dir mountPath: /var/lib/csi/sockets/pluginproxy/ - name: csi-attacher - image: quay.io/k8scsi/csi-attacher:v1.0.0 + image: quay.io/k8scsi/csi-attacher:v1.1.0 args: - "--v=2" - "--csi-address=$(ADDRESS)" @@ -59,8 +61,19 @@ spec: volumeMounts: - name: socket-dir mountPath: /var/lib/csi/sockets/pluginproxy/ + - name: linode-csi-resizer + image: quay.io/k8scsi/csi-resizer:v0.1.0 + args: + - "--v=2" + - "--csi-address=$(ADDRESS)" + env: + - name: ADDRESS + value: /var/lib/csi/sockets/pluginproxy/csi.sock + volumeMounts: + - name: socket-dir + mountPath: /var/lib/csi/sockets/pluginproxy/ - name: linode-csi-plugin - image: linode/linode-blockstorage-csi-driver:v0.1.6 + image: linode/linode-blockstorage-csi-driver:v0.2.0 args : - "--endpoint=$(CSI_ENDPOINT)" - "--token=$(LINODE_TOKEN)" diff --git a/files/linode/csi-linode-node-DaemonSet.yaml b/files/linode/csi-linode-node-DaemonSet.yaml index edd3ae9..6f24f0d 100644 --- a/files/linode/csi-linode-node-DaemonSet.yaml +++ b/files/linode/csi-linode-node-DaemonSet.yaml @@ -4,6 +4,8 @@ apiVersion: apps/v1 metadata: name: csi-linode-node namespace: kube-system + labels: + app: csi-linode-node spec: selector: matchLabels: @@ -56,7 +58,7 @@ spec: - name: registration-dir mountPath: /registration/ - name: csi-linode-plugin - image: linode/linode-blockstorage-csi-driver:v0.1.6 + image: linode/linode-blockstorage-csi-driver:v0.2.0 args : - "--endpoint=$(CSI_ENDPOINT)" - "--token=$(LINODE_TOKEN)" diff --git a/files/linode/external-attacher-role-ClusterRole.yaml b/files/linode/external-attacher-role-ClusterRole.yaml index 640b508..4393c9b 100644 --- a/files/linode/external-attacher-role-ClusterRole.yaml +++ b/files/linode/external-attacher-role-ClusterRole.yaml @@ -16,4 +16,4 @@ rules: verbs: ["get", "list", "watch"] - apiGroups: ["storage.k8s.io"] resources: ["volumeattachments"] - verbs: ["get", "list", "watch", "update"] + verbs: ["create", "get", "list", "watch", "update"] diff --git a/files/linode/external-provisioner-role-ClusterRole.yaml b/files/linode/external-provisioner-role-ClusterRole.yaml index 74a5e87..610585b 100644 --- a/files/linode/external-provisioner-role-ClusterRole.yaml +++ b/files/linode/external-provisioner-role-ClusterRole.yaml @@ -10,10 +10,10 @@ rules: verbs: ["get", "list"] - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete"] + verbs: ["get", "list", "watch", "create", "delete", "patch"] - apiGroups: [""] - resources: ["persistentvolumeclaims"] - verbs: ["get", "list", "watch", "update"] + resources: ["persistentvolumeclaims", "persistentvolumeclaims/status"] + verbs: ["get", "list", "watch", "update", "patch"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] verbs: ["get", "list", "watch"] diff --git a/files/linode/linode-block-storage-StorageClass.yaml b/files/linode/linode-block-storage-StorageClass.yaml index 51f100d..11596ba 100644 --- a/files/linode/linode-block-storage-StorageClass.yaml +++ b/files/linode/linode-block-storage-StorageClass.yaml @@ -5,3 +5,4 @@ metadata: name: linode-block-storage namespace: kube-system provisioner: linodebs.csi.linode.com +allowVolumeExpansion: true diff --git a/files/linode/linode-block-storage-retain-StorageClass.yaml b/files/linode/linode-block-storage-retain-StorageClass.yaml index 623dc84..0453438 100644 --- a/files/linode/linode-block-storage-retain-StorageClass.yaml +++ b/files/linode/linode-block-storage-retain-StorageClass.yaml @@ -5,3 +5,4 @@ metadata: namespace: kube-system provisioner: linodebs.csi.linode.com reclaimPolicy: Retain +allowVolumeExpansion: true