I have been trying to mount a file share on Kubernetes pod hosted on AKS in Azure. So far, I have tried to:
1. Successfully created a secret by base64 encoding the name and the key
2. Create a yaml by specifying the correct configurations
3. Once I apply it using kubectl apply -f azure-file-pod.yaml
, it gives me the following error:
Output: mount error: could not resolve address for demo.file.core.windows.net: Unknown error
I have an Azure File Share by the name of demo
.
Here is my yaml file:apiVersion: v1 kind: Pod metadata: name: azure-files-pod spec: containers: - image: microsoft/sample-aks-helloworld name: azure volumeMounts: - name: azure mountPath: /mnt/azure volumes: - name: azure azureFile: secretName: azure-secret shareName: demo readOnly: false
How can this possibly be resolved?