Skip to content

mnlawler/gitops-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitops

Applying to Cluster

Bootstrap:

Checkout the bootstrap repo and run the appropriate cluster shellscript. Repo: /~https://github.com/mnlawler/gitops-demo-bootstrap

Manually:

  1. Log into cluster
  2. Checkout this repo
  3. Locally go to the openshift-gitops/base/operator
  4. kustomize build . | oc apply -f -
  5. Locally go to the openshift-gitops/overlay you wish to apply
  6. oc wait install-plan; kustomize build . | oc apply -f -

This will install the operator subscription, wait for it to finish installing, then install the gitops configuration which will then install the rest of the applications.

Useful Information

Sync Waves

Sync waves allow for manifests to be defined as happening in certain orders. Pre/Post Hooks, or just ordered waves during deployment. For more information see: https://argoproj.github.io/argo-cd/user-guide/sync-waves/

Application Sets

As used in the openshift-gitops config in this repostiory, application sets act as meta config allowing Application definitions to be generated from git repositories in a standardized fashion. This reduces the need to hand roll large amounts of configuration when theres a standard directory structure/overlay structure in place.

In this repository examples of application sets using kustomize overlays can be found:

  • openshift-gitops/base/instance/400-application-set.yaml

Overlays patching the appset to ensure the same overlay is used once deployed:

  • openshift-gitops/overlay/dev/kustomization.yaml
  • openshift-gitops/overlay/test/kustomization.yaml

For more information see: https://argocd-applicationset.readthedocs.io/en/stable/

Other documentation

A great repository for reference examples of a substantial number of base operators: /~https://github.com/redhat-canada-gitops/catalog

RedHat Openshift 4.7 GitOps Documentation: https://access.redhat.com/documentation/en-us/openshift_container_platform/4.7/html/cicd/gitops

Kustomzie Documentation: https://kubernetes-sigs.github.io/kustomize/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published