Fix compatability with K8s v1.20
csi-provisioner v1.0.1 doesn't support K8s v1.20 as it uses selfLink Update to latest csi-provisioner and fix any incompatibilities
This commit is contained in:
parent
7523736239
commit
dc46248f16
@ -44,7 +44,7 @@ metadata:
|
|||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
annotations:
|
annotations:
|
||||||
storageclass.kubernetes.io/is-default-class: "true"
|
storageclass.kubernetes.io/is-default-class: "true"
|
||||||
provisioner: com.seaweedfs.csi
|
provisioner: seaweedfs-csi-driver
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
@ -249,9 +249,8 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
# provisioner
|
# provisioner
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: quay.io/k8scsi/csi-provisioner:v1.0.1
|
image: quay.io/k8scsi/csi-provisioner:v2.1.0
|
||||||
args:
|
args:
|
||||||
- "--provisioner=com.seaweedfs.csi"
|
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
env:
|
env:
|
||||||
@ -342,7 +341,7 @@ spec:
|
|||||||
- name: ADDRESS
|
- name: ADDRESS
|
||||||
value: /csi/csi.sock
|
value: /csi/csi.sock
|
||||||
- name: DRIVER_REG_SOCK_PATH
|
- name: DRIVER_REG_SOCK_PATH
|
||||||
value: /var/lib/kubelet/plugins/com.seaweedfs.csi/csi.sock
|
value: /var/lib/kubelet/plugins/seaweedfs-csi-driver/csi.sock
|
||||||
- name: KUBE_NODE_NAME
|
- name: KUBE_NODE_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
@ -388,7 +387,7 @@ spec:
|
|||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
- name: plugin-dir
|
- name: plugin-dir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/kubelet/plugins/com.seaweedfs.csi
|
path: /var/lib/kubelet/plugins/seaweedfs-csi-driver
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
- name: pods-mount-dir
|
- name: pods-mount-dir
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user