mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
The old repository for these has been deleted, leaving the previous configuration not possible to deploy, and even currently running clusters fail after a restart as the DeameonSet has ImagePullPolicy: Always. More details can be found here: kubernetes-sigs/vsphere-csi-driver#3053 As of writing, only CSI driver versions 3.1.2 to 3.3.1 is available in this registry. This "officially" supports Kubernetes 1.26 to 1.30. Since older drivers are not available, I have removed some feature-gating for those unavailable versions while I was at it. For the cloud provider, the `latest` image is now missing, and only 1.28.0 to 1.31.0 are available. I've set the latest of these as the new default. I also updated the documented default versions, as they were all out of date and not aligned with actual code defaults.
88 lines
2.9 KiB
Django/Jinja
88 lines
2.9 KiB
Django/Jinja
kind: ServiceAccount
|
|
apiVersion: v1
|
|
metadata:
|
|
name: vsphere-csi-controller
|
|
namespace: "{{ vsphere_csi_namespace }}"
|
|
---
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: vsphere-csi-controller-role
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["nodes", "pods"]
|
|
verbs: ["get", "list", "watch"]
|
|
- apiGroups: [""]
|
|
resources: ["configmaps"]
|
|
verbs: ["get", "list", "watch", "create"]
|
|
- apiGroups: [""]
|
|
resources: ["persistentvolumeclaims"]
|
|
verbs: ["get", "list", "watch", "update"]
|
|
{% if external_vsphere_version >= "7.0" %}
|
|
- apiGroups: [""]
|
|
resources: ["persistentvolumeclaims/status"]
|
|
{% if external_vsphere_version >= "7.0u1" %}
|
|
verbs: ["patch"]
|
|
{% else %}
|
|
verbs: ["update", "patch"]
|
|
{% endif %}
|
|
{% endif %}
|
|
- apiGroups: [""]
|
|
resources: ["persistentvolumes"]
|
|
verbs: ["get", "list", "watch", "create", "update", "delete", "patch"]
|
|
- apiGroups: [""]
|
|
resources: ["events"]
|
|
verbs: ["get", "list", "watch", "create", "update", "patch"]
|
|
- apiGroups: ["coordination.k8s.io"]
|
|
resources: ["leases"]
|
|
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
|
- apiGroups: ["storage.k8s.io"]
|
|
resources: ["storageclasses","csinodes"]
|
|
verbs: ["get", "list", "watch"]
|
|
- apiGroups: ["storage.k8s.io"]
|
|
resources: ["volumeattachments"]
|
|
verbs: ["get", "list", "watch", "patch", "update"]
|
|
- apiGroups: ["cns.vmware.com"]
|
|
resources: ["triggercsifullsyncs"]
|
|
verbs: ["create", "get", "update", "watch", "list"]
|
|
- apiGroups: ["cns.vmware.com"]
|
|
resources: ["cnsvspherevolumemigrations"]
|
|
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
|
- apiGroups: ["apiextensions.k8s.io"]
|
|
resources: ["customresourcedefinitions"]
|
|
verbs: ["get", "create", "update"]
|
|
- apiGroups: ["cns.vmware.com"]
|
|
resources: ["cnsvolumeoperationrequests"]
|
|
verbs: ["create", "get", "list", "update", "delete"]
|
|
- apiGroups: [ "cns.vmware.com" ]
|
|
resources: [ "csinodetopologies" ]
|
|
verbs: ["get", "update", "watch", "list"]
|
|
- apiGroups: ["storage.k8s.io"]
|
|
resources: ["volumeattachments/status"]
|
|
verbs: ["patch"]
|
|
- apiGroups: [ "snapshot.storage.k8s.io" ]
|
|
resources: [ "volumesnapshots" ]
|
|
verbs: [ "get", "list" ]
|
|
- apiGroups: [ "snapshot.storage.k8s.io" ]
|
|
resources: [ "volumesnapshotclasses" ]
|
|
verbs: [ "watch", "get", "list" ]
|
|
- apiGroups: [ "snapshot.storage.k8s.io" ]
|
|
resources: [ "volumesnapshotcontents" ]
|
|
verbs: [ "create", "get", "list", "watch", "update", "delete", "patch" ]
|
|
- apiGroups: [ "snapshot.storage.k8s.io" ]
|
|
resources: [ "volumesnapshotcontents/status" ]
|
|
verbs: [ "update", "patch" ]
|
|
---
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: vsphere-csi-controller-binding
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: vsphere-csi-controller
|
|
namespace: "{{ vsphere_csi_namespace }}"
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: vsphere-csi-controller-role
|
|
apiGroup: rbac.authorization.k8s.io
|