Update(deploy): Update the csi-provisioner version to v3.0.0 (#374)

Signed-off-by: w3aman <aman.gupta@mayadata.io>
This commit is contained in:
Aman Gupta 2021-09-01 11:29:54 +05:30 committed by GitHub
parent 16f14c33ec
commit 5030cb4acf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 7 deletions

View file

@ -34,7 +34,7 @@ must meet the following prerequisites:
### Supported System
K8S : 1.18+
K8S : 1.20+
OS : Ubuntu, CentOS

View file

@ -10,6 +10,8 @@ spec:
# do not require volumeattachment
attachRequired: false
podInfoOnMount: false
storageCapacity: true
---
apiVersion: apiextensions.k8s.io/v1
@ -762,7 +764,7 @@ spec:
serviceAccount: openebs-zfs-controller-sa
containers:
- name: csi-resizer
image: k8s.gcr.io/sig-storage/csi-resizer:v1.1.0
image: k8s.gcr.io/sig-storage/csi-resizer:v1.2.0
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
@ -793,7 +795,7 @@ spec:
- "--leader-election=true"
imagePullPolicy: IfNotPresent
- name: csi-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v2.1.0
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.0.0
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
@ -802,10 +804,19 @@ spec:
- "--strict-topology"
- "--leader-election"
- "--extra-create-metadata=true"
- "--enable-capacity=true"
- "--default-fstype=ext4"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
@ -995,7 +1006,7 @@ spec:
hostNetwork: true
containers:
- name: csi-node-driver-registrar
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.1.0
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.3.0
imagePullPolicy: IfNotPresent
args:
- "--v=5"

View file

@ -1304,6 +1304,8 @@ spec:
# do not require volumeattachment
attachRequired: false
podInfoOnMount: false
storageCapacity: true
---
apiVersion: apiextensions.k8s.io/v1
@ -2055,7 +2057,7 @@ spec:
serviceAccount: openebs-zfs-controller-sa
containers:
- name: csi-resizer
image: k8s.gcr.io/sig-storage/csi-resizer:v1.1.0
image: k8s.gcr.io/sig-storage/csi-resizer:v1.2.0
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
@ -2086,7 +2088,7 @@ spec:
- "--leader-election=true"
imagePullPolicy: IfNotPresent
- name: csi-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v2.1.0
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.0.0
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
@ -2095,10 +2097,19 @@ spec:
- "--strict-topology"
- "--leader-election"
- "--extra-create-metadata=true"
- "--enable-capacity=true"
- "--default-fstype=ext4"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
@ -2288,7 +2299,7 @@ spec:
hostNetwork: true
containers:
- name: csi-node-driver-registrar
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.1.0
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.3.0
imagePullPolicy: IfNotPresent
args:
- "--v=5"

View file

@ -99,3 +99,15 @@ Please note that if you have modified the OPENEBS_NAMESPACE env in the driver's
5. *restart kube-controller [optional]*
kube-controller-manager might be using stale volumeattachment resources, it might get flooded with the error logs. Restarting kube-controller will fix it.
### *Note*
While upgrading zfs-driver from v1.9.1 to later version by applying zfs-operator file, we may get this error.
```
The CSIDriver "zfs.csi.openebs.io" is invalid: spec.storageCapacity: Invalid value: true: field is immutable
```
It occurs due to newly added field `storageCapacity: true` in csi driver spec. In that case, first delete the csi-driver by running this command:
```
$ kubectl delete csidriver zfs.csi.openebs.io
```
Now we can again apply the operator yaml file.