How to use base overlays where multiple envs are present in same cluster #5134
Unanswered
prathamesh-0909
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I had some questions regarding how I am using fluxcd. I wanted to know how to use fluxcd base and overlays architecture where I have dev, testing, staging envs in same cluster separated by namespaces in k8s cluster. I have all my microservices deployed in dev, testing, staging ns with different configs and I wanted to fluxcd to organize these envs properly and work according to gitops principles. But I see that my yaml file is base/service-name is being applied (which should not be applied) because I am using that file as a template to deploy application on dev, testing, staging by changing the namespaces in the overlay.
Am I doing something wrong?
I do not want flux to apply that base deployment.yaml because I will be overriding the image and namespaces and should other configs in the overlays/dev env-patch.yaml but I am not able to find workaround this problem. Can somebody help me?
Also I wanted to know should microservice be separated in same cluster by their envs i.e dev, testing, staging or should be separated by microservice, i.e auth-service-dev, auth-service-staging placed in the same ns (auth-service)
Beta Was this translation helpful? Give feedback.
All reactions