From the course: Automating Kubernetes with GitOps

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Organizing Git repositories for GitOps environments

Organizing Git repositories for GitOps environments - Kubernetes Tutorial

From the course: Automating Kubernetes with GitOps

Organizing Git repositories for GitOps environments

- Alright, now we have reviewed some of the Git basics, let's bring Git back into the GitOps environment. So how do we organize Git repositories for GitOps environments? Well, in a GitOps environment, stages are defined for different environments. And these stages and environments should be presented in the Git repositories. And common solutions are the single branch strategy and a multi-branch strategy. Now what is that about? Well, in the single branch strategy, there is one Git repository, with a specific directory for each of the environments. And the Kubernetes customized utility is going to be used to adopt the configuration for a specific environment from these directories. Environment-specific settings will be in each of the subdirectories as different resources are required in production and in pre-production. And the advantage of this strategy is that all code is still in one branch, but Kustomization is required to create a specific environments. You are fully going to…

Contents