View in #general on Slack
@Tom_Marquardt: Hello everybody!! I’ve gathered from this forum that some of you have Cube.js deployed via Kubernetes. I have the following questions:
1 – For the cube-api and cube-refresh-worker, how do you set it up so that your “schema” directory is properly mounted? This will be a remote install, so I don’t think I can use “hostPath”. Should I consider creating my owner DockerFile docker image based on the “cubejs/cube” which copies my schema file into my own image which I would deploy instead of “cubejs/cube”? Or is that crazy and there is some other technique?
2 – For the cubestore router and workers, I don’t think I have this problem. My thoughts were to have one “cubestore” persistent volume claim that the router and workers all use. Is that recommended, or should they each have their own claim?
Thanks for any help!!!
@Hassan_Khan: Hi @Tom_Marquardt
- Creating your own Dockerfile that includes your schemas is definitely the way to go here
- Using the same persistent volume claim should work just fine
Hope that helps