Repository navigation
Introduce a system GitOps sample repo for OpenChoreo #4851
Replies: 3 comments 2 replies
|
@JanakaSandaruwan thanks for the proposal. I think this would be really helpful for users running OpenChoreo in production, as most production installations are managed through GitOps. Having gone through the process of setting up OpenChoreo in production, we have experienced firsthand the effort and pain involved in building the GitOps setup around the platform. Having a ready-to-use reference repository would significantly reduce that effort and give users a much better starting point for production deployments. |
|
+1, thanks Janaka. This is a much needed piece in the puzzle now. Added as prioritized to the roadmap - #4858 NB. I believe this is a similar issue from @rashadism? #4835 |
|
I have put together a first cut of the system GitOps sample repo based on this proposal: https://github.com/VajiraPrabuddhaka/sample-system-gitops It installs OpenChoreo itself (the control, data, workflow and observability planes, plus everything they need) from Git with either Flux or Argo CD, instead of following the manual Helm and kubectl steps in the install guides. You install the GitOps tool from its own guide and then plug this repo in. The repo follows the structure that @JanakaSandaruwan proposed, with a common base and a small overlay per cluster:
Note The examples in this repo use a local k3d installation, so that anyone can try them out easily on their own machine. However, this repo is meant to be a reference sample for production deployments. When we publish it, there will be public documentation along with it, explaining how to refer to it and use it for your own environments (e.g., AKS, EKS, GKE, on-prem). Here are a few things worth highlighting:
I have tested Try it out: You need Docker with at least 8 GB RAM, # Fork https://github.com/VajiraPrabuddhaka/sample-system-gitops first
git clone https://github.com/<you>/sample-system-gitops.git
cd sample-system-gitops
scripts/set-git-source.sh https://github.com/<you>/sample-system-gitops.git main
git commit -am "Point at my fork" && git push
scripts/k3d-up.sh
flux install
kubectl apply -f flux/clusters/k3d-single/plug.yaml
kubectl -n flux-system get kustomizations -w # wait until every unit is Ready
scripts/verify.shOnce everything is Ready, open http://openchoreo.localhost:8080 and log in as If we are good with this approach, I will move the repo to the openchoreo org (#4858) along with proper documentation. Please try it out and give a +1, or raise if you have any concerns. Your feedback is much appreciated. |
Uh oh!
There was an error while loading. Please reload this page.
Add a sample system GitOps repo that platform engineers can fork to install and run OpenChoreo with Flux or Argo CD. It would be the starting point for platform engineers adopting OpenChoreo. Today they start from the manual Helm and kubectl steps in the docs, and then build their own GitOps setup on top of that.
Why we need it
Further, we can extend this to keep provider-specific configurations as well. For example, one common base with the plane Helm charts, the install order, plane registration, and the trust setup between cluster-agent and cluster-gateway. A small overlay for each platform (k3d, AKS, EKS, GKE, on-prem) holds only the parts that differ: the secret store (Kubernetes secrets, Azure Key Vault, AWS Secrets Manager, GCP Secret Manager, or Vault), workload identity, load balancer settings, how TLS certificates are issued, and the storage class.
All reactions