Browse Source

[vsphere_csi] update to 2.5.1 and make external_vsphere_version 7.0u1 by default (#8676)

pull/8620/head
Cristian Calin 2 years ago
committed by GitHub
parent
commit
cefd1339fc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 43 additions and 15 deletions
  1. 19
      roles/kubernetes-apps/csi_driver/vsphere/defaults/main.yml
  2. 5
      roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-config.yml.j2
  3. 23
      roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-deployment.yml.j2
  4. 7
      roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-rbac.yml.j2
  5. 2
      roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-node-rbac.yml.j2
  6. 2
      roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-node.yml.j2

19
roles/kubernetes-apps/csi_driver/vsphere/defaults/main.yml

@ -2,16 +2,17 @@
external_vsphere_vcenter_port: "443" external_vsphere_vcenter_port: "443"
external_vsphere_insecure: "true" external_vsphere_insecure: "true"
external_vsphere_kubernetes_cluster_id: "kubernetes-cluster-id" external_vsphere_kubernetes_cluster_id: "kubernetes-cluster-id"
external_vsphere_version: "6.7u3"
external_vsphere_version: "7.0u1"
vsphere_syncer_image_tag: "v2.4.0"
vsphere_csi_attacher_image_tag: "v3.3.0"
vsphere_csi_controller: "v2.4.0"
vsphere_csi_liveness_probe_image_tag: "v2.4.0"
vsphere_csi_provisioner_image_tag: "v3.0.0"
vsphere_csi_node_driver_registrar_image_tag: "v2.3.0"
vsphere_csi_driver_image_tag: "v2.4.0"
vsphere_csi_resizer_tag: "v1.3.0"
vsphere_syncer_image_tag: "v2.5.1"
vsphere_csi_attacher_image_tag: "v3.4.0"
vsphere_csi_controller: "v2.5.1"
vsphere_csi_liveness_probe_image_tag: "v2.6.0"
vsphere_csi_provisioner_image_tag: "v3.1.0"
vsphere_csi_snapshotter_image_tag: "v5.0.1"
vsphere_csi_node_driver_registrar_image_tag: "v2.5.0"
vsphere_csi_driver_image_tag: "v2.5.1"
vsphere_csi_resizer_tag: "v1.4.0"
vsphere_csi_controller_replicas: 1 vsphere_csi_controller_replicas: 1

5
roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-config.yml.j2

@ -9,6 +9,11 @@ data:
"improved-volume-topology": "true" "improved-volume-topology": "true"
"block-volume-snapshot": "false" "block-volume-snapshot": "false"
"csi-windows-support": "false" "csi-windows-support": "false"
{% if vsphere_csi_controller is version('v2.5.0', '>=') %}
"use-csinode-id": "true"
"pv-to-backingdiskobjectid-mapping": "false"
"cnsmgr-suspend-create-volume": "false"
{% endif %}
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: internal-feature-states.csi.vsphere.vmware.com name: internal-feature-states.csi.vsphere.vmware.com

23
roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-deployment.yml.j2

@ -75,10 +75,10 @@ spec:
- "--v=4" - "--v=4"
- "--timeout=300s" - "--timeout=300s"
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
- "--leader-election"
- "--handle-volume-inuse-error=false" - "--handle-volume-inuse-error=false"
- "--kube-api-qps=100" - "--kube-api-qps=100"
- "--kube-api-burst=100" - "--kube-api-burst=100"
- "--leader-election"
env: env:
- name: ADDRESS - name: ADDRESS
value: /csi/csi.sock value: /csi/csi.sock
@ -190,12 +190,12 @@ spec:
- "--v=4" - "--v=4"
- "--timeout=300s" - "--timeout=300s"
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
- "--leader-election"
- "--default-fstype=ext4"
{% if vsphere_csi_controller is version('v2.2.0', '>=') %} {% if vsphere_csi_controller is version('v2.2.0', '>=') %}
- "--kube-api-qps=100" - "--kube-api-qps=100"
- "--kube-api-burst=100" - "--kube-api-burst=100"
{% endif %} {% endif %}
- "--leader-election"
- "--default-fstype=ext4"
# needed only for topology aware setup # needed only for topology aware setup
#- "--feature-gates=Topology=true" #- "--feature-gates=Topology=true"
#- "--strict-topology" #- "--strict-topology"
@ -205,6 +205,23 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /csi - mountPath: /csi
name: socket-dir name: socket-dir
{% if vsphere_csi_controller is version('v2.5.0', '>=') %}
- name: csi-snapshotter
image: {{ kube_image_repo }}/sig-storage/csi-snapshotter:{{ vsphere_csi_snapshotter_image_tag }}
args:
- "--v=4"
- "--kube-api-qps=100"
- "--kube-api-burst=100"
- "--timeout=300s"
- "--csi-address=$(ADDRESS)"
- "--leader-election"
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- mountPath: /csi
name: socket-dir
{% endif %}
volumes: volumes:
- name: vsphere-config-volume - name: vsphere-config-volume
secret: secret:

7
roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-rbac.yml.j2

@ -10,8 +10,11 @@ metadata:
name: vsphere-csi-controller-role name: vsphere-csi-controller-role
rules: rules:
- apiGroups: [""] - apiGroups: [""]
resources: ["nodes", "persistentvolumeclaims", "pods", "configmaps"]
resources: ["nodes", "pods", "configmaps"]
verbs: ["get", "list", "watch"] verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
{% if external_vsphere_version >= "7.0" %} {% if external_vsphere_version >= "7.0" %}
- apiGroups: [""] - apiGroups: [""]
resources: ["persistentvolumeclaims/status"] resources: ["persistentvolumeclaims/status"]
@ -66,7 +69,7 @@ rules:
verbs: [ "watch", "get", "list" ] verbs: [ "watch", "get", "list" ]
- apiGroups: [ "snapshot.storage.k8s.io" ] - apiGroups: [ "snapshot.storage.k8s.io" ]
resources: [ "volumesnapshotcontents" ] resources: [ "volumesnapshotcontents" ]
verbs: [ "create", "get", "list", "watch", "update", "delete" ]
verbs: [ "create", "get", "list", "watch", "update", "delete", "patch" ]
- apiGroups: [ "snapshot.storage.k8s.io" ] - apiGroups: [ "snapshot.storage.k8s.io" ]
resources: [ "volumesnapshotcontents/status" ] resources: [ "volumesnapshotcontents/status" ]
verbs: [ "update", "patch" ] verbs: [ "update", "patch" ]

2
roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-node-rbac.yml.j2

@ -12,7 +12,7 @@ metadata:
rules: rules:
- apiGroups: ["cns.vmware.com"] - apiGroups: ["cns.vmware.com"]
resources: ["csinodetopologies"] resources: ["csinodetopologies"]
verbs: ["create", "watch"]
verbs: ["create", "watch", "get", "patch" ]
- apiGroups: [""] - apiGroups: [""]
resources: ["nodes"] resources: ["nodes"]
verbs: ["get"] verbs: ["get"]

2
roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-node.yml.j2

@ -77,6 +77,8 @@ spec:
value: "false" value: "false"
- name: X_CSI_DEBUG - name: X_CSI_DEBUG
value: "true" value: "true"
- name: X_CSI_SPEC_DISABLE_LEN_CHECK
value: "true"
- name: LOGGER_LEVEL - name: LOGGER_LEVEL
value: "PRODUCTION" # Options: DEVELOPMENT, PRODUCTION value: "PRODUCTION" # Options: DEVELOPMENT, PRODUCTION
{% if external_vsphere_version >= "7.0u1" %} {% if external_vsphere_version >= "7.0u1" %}

Loading…
Cancel
Save