-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Can't roll out Wordpress chart with PV on AzureFile #5751
Comments
This doesn't sound correct. (I work for Azure and have extensive experience with this chart.) Can you should be how the sotrage class |
I'm sorry still trying to learn. Got an example of a working yaml that defined these parameters and that was working. This is my storageclass file:
|
Also is whatever actual storage account you are attempting to use in the same resource group as your cluster? That matters. It must be in the same group. |
The It actually is in the right resource group. I've double checked it to be sure. When I add the following parameters the persistent volume problem is fixed. However the Wordpress Pod is going into a crashloopbackoff state.
It looks like it is still upgrading the database when the container is killed and deployed again. |
Okay, I got it to work. By delaying the health check it is working. But this does not seem to be the best way to do it. Is Azure File that slow? |
Ah. Yes. I forgot about the issue of the healthcheck failing before initialization completes. Yes. It is that slow. You have to remember that underneath, that is a file share using Samba. If you don't plan to scale to multiple pods, you can use Azure based storage that does not support ReadWriteMany. If you need to scale the pods, you need ReadWriteMany, and all options I know of that support that are slow. |
I was trying to go for a HA but we will have to wait until the Azure file storage has improved their speeds for small files. Found the following issue: |
Is this a request for help?:
Help
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
FEATURE REQUEST
I'd like to be able to set a value for:
volumeMounts:
- mountPath: "/mnt/azure"
name: volume
There is no parameter for this. If you want to use Azure File it is necessary to specify the mountPath
This is my current values.yaml:
Version of Helm and Kubernetes:
Helm: v2.9.1
Kubernetes 1.9.6 AZURE/AKS
Which chart:
Wordpress
What happened:
MariaDB gets into a Init:CrashLoopBackOff state
What you expected to happen:
Wordpress starting and running with a persistent volume.
How to reproduce it (as minimally and precisely as possible):
Roll out AKS with AzureFile as storage
Then:
Anything else we need to know:
Used this tutorial to set up Azure File:
https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv
I changed the Azure Disk example to Azure File
The text was updated successfully, but these errors were encountered: