This repository contains a simple environment setup to experiment with GitOps localy and on cloud.
Prerequisites:
- docker
- docker-compose
- kubectl
- make
- kustomize
- fluxctl
docker-compose up -dIn your web browser go to the address below, click the Register button, create hyc-bot service account and then the Install Gitea
https://localhost:3000https://github.com/m00g3n/hyctestk3s.gitmake start-k3dgit clone http://localhost:3000/HYC/hyctestk3s.git
cd hyctestk3smake build TAG=1 && make push TAG=1make apply-k3s-flux-
Run following command in the shell and copy the whole output:
fluxctl identity --k8s-fwd-ns flux
-
Using the
hyc-botaccount create new SSH key with data from the previous step.
fluxctl sync --k8s-fwd-ns fluxPrerequisites:
- kubectl
- make
- kustomize
- fluxctl
export GIT_PASSWD=<your_password>make apply-k8s-giteagitea.hyc.commake apply-k8s-flux- Go to the
gitea.hyc.comin you browser and login asflux-bot. - Create the
HYCorganization and theinfrastructurerepository inside it. Make sure to store workloads in the infrastructure directory. - Prepare whole infrastructure inside repository.
-
Run following command in the shell and copy the whole output:
fluxctl identity --k8s-fwd-ns flux
-
Using the
flux-botaccount create new SSH key with data from the previous step.
fluxctl sync --k8s-fwd-ns flux