{"repo":"kostis-codefresh/gitops-environment-promotion","free":true,"listed":false,"github":"https://github.com/kostis-codefresh/gitops-environment-promotion","clone":"git clone https://github.com/kostis-codefresh/gitops-environment-promotion.git","description":"Example for promoting a release between different GitOps environments","language":null,"stars":336,"topics":["devops","gitops","kubernetes"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"How to Model Your Gitops Environments This is an example on how to model Kustomize folders for a GitOps application and promote releases between environments. Read the full blog post. You might want to see the application source code as well. Folder structure The base directory holds configuration which is common to all environments. It is not expected to change often. If you want to do changes to multiple environments at the same time it is best to use the “variants” folder. The variants folder (a.k.a mixins, a.k.a. components) holds common characteristics between environments. It is up to you to define what exactly you think is “common” between your environments after researching your application as discussed in the previous section. In the example application, we have variants for all prod and non-prod environments and also the regions. Here is an example of the prod variant that applies to ALL production environments. In the example above we make sure that all production environments are using the production DB credentials, the production payment gateway and a liveness probe. These settings belong to the set of configuration that we don’t expect to promote between environments but we assume that they will be static across the application lifecycle. With the base and variants ready we can now define every final environment with a combination of those properties. Here is an example of the staging ASIA environment: First we define some common properties. We inherit all confi","default_branch":null,"files":null,"tree":[],"storefront":"/r/kostis-codefresh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kostis-codefresh/gitops-environment-promotion/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}