Fix CSI drivers issues on Azure (#9153)

* Include missing azuredisk rbac manifest

* Remove missing azure csi manifest

* Remove invalid reference mount to waagent settings

* Use cloud-config secret instead of /etc/kubernetes/cloud_config file
pull/9191/head
Piotr Kowalczyk 2022-08-18 09:56:36 +02:00 committed by GitHub
parent b36bb9115a
commit 49d869f662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -25,8 +25,8 @@
- {name: azure-csi-cloud-config-secret, file: azure-csi-cloud-config-secret.yml} - {name: azure-csi-cloud-config-secret, file: azure-csi-cloud-config-secret.yml}
- {name: azure-csi-azuredisk-controller, file: azure-csi-azuredisk-controller-rbac.yml} - {name: azure-csi-azuredisk-controller, file: azure-csi-azuredisk-controller-rbac.yml}
- {name: azure-csi-azuredisk-controller, file: azure-csi-azuredisk-controller.yml} - {name: azure-csi-azuredisk-controller, file: azure-csi-azuredisk-controller.yml}
- {name: azure-csi-azuredisk-node-rbac, file: azure-csi-azuredisk-node-rbac.yml}
- {name: azure-csi-azuredisk-node, file: azure-csi-azuredisk-node.yml} - {name: azure-csi-azuredisk-node, file: azure-csi-azuredisk-node.yml}
- {name: azure-csi-node-info-crd.yml.j2, file: azure-csi-node-info-crd.yml}
register: azure_csi_manifests register: azure_csi_manifests
when: inventory_hostname == groups['kube_control_plane'][0] when: inventory_hostname == groups['kube_control_plane'][0]

View File

@ -165,9 +165,6 @@ spec:
- mountPath: /etc/kubernetes/ - mountPath: /etc/kubernetes/
name: azure-cred name: azure-cred
readOnly: true readOnly: true
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
readOnly: true
name: msi
resources: resources:
limits: limits:
memory: 500Mi memory: 500Mi

View File

@ -150,9 +150,9 @@ spec:
path: /var/lib/kubelet/plugins_registry/ path: /var/lib/kubelet/plugins_registry/
type: DirectoryOrCreate type: DirectoryOrCreate
name: registration-dir name: registration-dir
- hostPath: - secret:
path: /etc/kubernetes/ defaultMode: 0644
type: DirectoryOrCreate secretName: cloud-config
name: azure-cred name: azure-cred
- hostPath: - hostPath:
path: /dev path: /dev