System Information
- Strapi Version: 4.14.0
- Operating System: Kubernetes v1.19.6
- Database: PostgreSQL 15.4
- Node Version: 18.18.0
- NPM Version: 9.8.1
- Yarn Version: 1.22.19
I have installed application in K8 cluster (using this linkhttps://strapi.io/blog/how-to-deploy-and-scale-strapi-on-a-kubernetes-cluster-1-2 as an example
Since we need both Dev and Prod versions running I have made 2 pods to use both: strapi-dev and strapi-prod with 2 different links pointing to 2 docker images built with Dockerfile and Dockerfile.prod accordingly
I wonder is it ok to use these 2 links in parallel or it may cause any issues and I need to run and use only one version of the application?
as long as the 2 are compleatly separated aka not using the same DB. you should be able to use both links in paralel.
if you where to use the same DB changes made in dev would also auto apply to production so that is bad,
Thanks for the update, got it. We have 1 database for all environments (sine I have no idea why we need to have 2 separate databases, as it all works for one project)
Does it mean that we can’t have 2 Kubernetes services run in parallel? Or it just means that we can’t use 2 services at one time (meaning, that we can use development link and after this we can use production link just not using these links in parallel in one time)?
I thought that all versions of Strapi (dev and prod) use some locking mechanism not to break anything in database. Isn’t that so?
Here in docs there is nothing about using dev and prod mode together so I wonder what is the risk of doing this?