This is expected behavior as the csi-resizer is used for volume expansion which is not supported in vSphere 6.7. See the vSphere CSI Driver
feature support matrix.
Upgrade vSphere to 7.0 or later and use CSI 2.0 or later to set up CNS.
Workaround:
Remove the resizer sidecar from the vsphere-csi controller manifest by deleting the "csi-resizer" section before applying the manifests to setup CNS. If CNS is already setup can apply the changed manifest using
kubectl apply -f <manifest.yaml>.
The example csi-resizer section to remove looks like the following:
- name: csi-resizer
image: quay.io/k8scsi/csi-resizer:v0.5.0
args:
- "--v=4"
- "--csiTimeout=300s"
- "--csi-address=$(ADDRESS)"
- "--leader-election"
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- mountPath: /csi
name: socket-dir