Multi-environment emulation of CNOE using idpbuilder + vcluster
If you have Go installed, you can simply run the following:
./hack/setup.sh
If you prefer not to install Go SDK you can download the idpbuilder binary and execute the following:
idpbuilder -p config/cnoe-packages
./hack/add-vclusters.sh
You now have a CNOE reference stack which includes two vclusters named "production" and "staging" that are both added as clusters to the CNOE provided ArgoCD. It is now up to you to deploy any multi-cluster workloads you wish to experiment with, or deploy one of the sample worloads included under config/workloads
(more information below).
See the output from Step 1 to see how to connect to argocd. Typically, you can browse to (https://argocd.cnoe.localtest.me:8443/) and login with the credentials shown by running ./bin/idpbuilder-8ab0e10 get secrets -p argocd
.
The easiest way to deploy a sample workload is to run idpbuilder create
with the workload added as an extra package. Assuming you used the Go-based setup script, here is an example:
./bin/idpbuilder-8ab0e10 create -p config/cnoe-packages -p config/workloads/simple-podtatohead