Skip to content

railcp/template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

RAIL GitOps repository for your team!

Your primary RAIL namespace in all the clusters deploys everything that's defined in the subdirectory that matches:

repo name (this repo) / cluster name / RAIL Using Kustomize it's easy to manage your resources in a GitOps way.

Some tips:

  • If you want to add a new app or resource, you should add it to the base directory.
  • If you want to include/enable it in a specific cluster, you must add it to a kustomization.yaml in RAIL directory in a directory.

This way, adding resources in base makes it available for all clusters but the kustomization.yaml.

The following structure is not mandatory, but recommended:

β”œβ”€β”€ .sops.pub.asc                   # A public PGP key you can use to sign secrets that will be decoded in the clusters by SOPS (mozilla Secret OPerationS)                        
β”œβ”€β”€ .sops.yaml                      # A configuration file that tells SOPS which values to encrypt
β”œβ”€β”€ base                            # This level contains apps and resources that's available for use in all clusters
β”‚Β Β  β”œβ”€β”€ example-from-docs           # This level represents this app and its set of resources. It must include kuztomization.yaml that includes the other manifest files
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ deployment.yaml
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ingress.yaml
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ kustomization.yaml      # This file includes the other manifest files
β”‚Β Β  β”‚Β Β  └── service.yaml
β”‚Β Β  └── README.md                   # Love your READMEs, and feed and exercise them regulary and keep them lean.
β”œβ”€β”€ osl1-test                       # This directory level representes the configuration thats unique for a specific cluster
β”‚Β Β  β”œβ”€β”€ example-from-docs           # This directory level represents configuration for this app in the osl1-test cluster
β”‚Β Β  └── RAIL                        # This is where the fluxcd controller finds deployments for this cluster
β”œβ”€β”€ README.md
└── bgo1-prod                       # You guessed it, this is another cluster, for your production workloads
Β Β   β”œβ”€β”€ RAIL                        # ...and this is where the fluxcd controller finds deployments for this specific cluster
Β Β   β”‚ Β Β  └── some_app
Β Β   β”‚ Β Β Β Β Β Β  └── kustomization.yaml # Define a namespace and a fluxcd kustomization here in order to deploy some_app 
Β Β   └── some_app                    #
        └── kustomization.yaml      # This file includes the base directory and the other manifest files, enabling the resources in the cluster

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors