diff --git a/addons/csi-azurefile/Kustomization b/addons/csi-azurefile/Kustomization index d4e3297a4..a45dcb5c0 100644 --- a/addons/csi-azurefile/Kustomization +++ b/addons/csi-azurefile/Kustomization @@ -22,6 +22,9 @@ patches: initContainers: - name: install-azurefile-proxy image: '{{ .InternalImages.Get "AzureFileCSI" }}' + env: + - name: INSTALL_AZNFS_MOUNT + value: '{{ default "true" .Params.INSTALL_AZNFS_MOUNT }}' containers: - name: liveness-probe image: '{{ .InternalImages.Get "AzureFileCSILivenessProbe" }}' diff --git a/addons/csi-azurefile/README.md b/addons/csi-azurefile/README.md index 9d93a5b67..c6eaf0511 100644 --- a/addons/csi-azurefile/README.md +++ b/addons/csi-azurefile/README.md @@ -6,3 +6,11 @@ See more: https://github.com/kubernetes-sigs/azurefile-csi-driver/tree/master/ch ```shell kubectl kustomize --enable-helm . | yq > csi-azurefile.yaml ``` + +## Using The Addon + +You need to replace the following values with the actual ones: + +* `INSTALL_AZNFS_MOUNT` can be used to define the value of `INSTALL_AZNFS_MOUNT` env variable which controls if aznfs apt package should be installed on the nodes or not. + * Possible values are `"true"`or `"false"` + * Default is `"true"`. diff --git a/addons/csi-azurefile/csi-azurefile.yaml b/addons/csi-azurefile/csi-azurefile.yaml index 26d55b1f3..2a6ad58e6 100644 --- a/addons/csi-azurefile/csi-azurefile.yaml +++ b/addons/csi-azurefile/csi-azurefile.yaml @@ -912,14 +912,14 @@ spec: - command: - /azurefile-proxy/init.sh env: + - name: INSTALL_AZNFS_MOUNT + value: '{{ default "true" .Params.INSTALL_AZNFS_MOUNT }}' - name: DEBIAN_FRONTEND value: noninteractive - name: AZNFS_NONINTERACTIVE_INSTALL value: "1" - name: INSTALL_AZUREFILE_PROXY value: "true" - - name: INSTALL_AZNFS_MOUNT - value: "true" - name: KUBELET_PATH value: /var/lib/kubelet - name: MIGRATE_K8S_REPO