Open jadhad opened 2 years ago
Hey @jadhad this sounds like an issue outside of the Helm chart itself, but let me see if I can help.
I see you're using a non-default StorageClass
because the chart doesn't allow you to specify it, so that's something we can fix later, but can you tell me what plugin or provider that storage class uses? Does it require additional options/annotations to be set on the PersistentVolumeClaim
object? I suspect that this might be an issue with the provisioning of the disk that's causing some permissions issues. The chart itself only creates the Kubernetes API objects, but I haven't tested it against Kubernetes 1.22, so it's possible that some modifications could be required.
Have you tried testing the setup locally following the steps under ./test-local/
? You can modify the Makefile
to tweak the parameters to k3d
to pin it to a specific Kubernetes version.
First of all - Great Job !!!
The idea to run these pods in kubernetes is much easier then editing the docker-compose files all the time.
As for you comments:
`apiVersion: v1 kind: PersistentVolumeClaim metadata: name: freqtrade-sqlite spec: accessModes:
apiVersion: v1 kind: PersistentVolume metadata: name: freqtrade-pv spec: capacity: storage: 1Gi accessModes:
ReadWriteOnce hostPath: path: /home/k8s-user/sqlite`
but it still didn't help.
Thank you very much!
Did you add the PersistentVolume
object yourself (either manually or on the chart)? The chart assumes that the storage class will automatically provision the PV given a PersistentVolumeClaim
. If your storage class plugin requires manual steps, then it's likely this is a configuration issue on that side. Maybe the volume at that path (/home/k8s-user/sqlite
) is being created with permissions such that it isn't accessible to the Docker daemon in the host?
I believe when I developed this chart I was using something like Kubernetes 1.18 or 1.19 if that helps.
Hi,
I'm attempting to execute your helm chart on kubernetes cluster v1.22.4. There were a few issues with the Igress template "api-version" and the 'persistentVolumeClaim' declaration inside the deployment template.
I've made the following modifications to the deployment template, according to the official documentations:
When I run the helm chart I can see that the PersistentVolume is created:
And the PersistentVolumeClaim is also created:
but the pod doesn't start to run with the error:
I've checked the worker node where the pod is deployed and it created a '/sqlite' folder with root ownership. When I attempt to create an empty sqlite DB file, using the 'sqlite3 file.db "VACUUM;"' command and placing it in the node's '/sqlite' folder I get an error:
freqtrade.commands.trade_commands - ERROR - (sqlite3.OperationalError) attempt to write a readonly database
I attempted to give ownership to the folder to the local user / ftuser I get the following error:
trade.commands.trade_commands - ERROR - (sqlite3.OperationalError) unable to open database file
What am I doing wrong? Can you please assist?