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 -d
In your web browser go to the address below, click the Register
button, create hyc-bot
service account and then the Install Gitea
https://localhost:3000
https://github.com/m00g3n/hyctestk3s.git
make start-k3d
git clone http://localhost:3000/HYC/hyctestk3s.git
cd hyctestk3s
make build TAG=1 && make push TAG=1
make apply-k3s-flux
-
Run following command in the shell and copy the whole output:
fluxctl identity --k8s-fwd-ns flux
-
Using the
hyc-bot
account create new SSH key with data from the previous step.
fluxctl sync --k8s-fwd-ns flux
Prerequisites:
- kubectl
- make
- kustomize
- fluxctl
export GIT_PASSWD=<your_password>
make apply-k8s-gitea
gitea.hyc.com
make apply-k8s-flux
- Go to the
gitea.hyc.com
in you browser and login asflux-bot
. - Create the
HYC
organization and theinfrastructure
repository 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-bot
account create new SSH key with data from the previous step.
fluxctl sync --k8s-fwd-ns flux