This is a training repo for exploring newest tools and technologies as GitOps, ControlPlanes and etc.
Note: All scripts were created for Mac M1 CPU!
Repo consist of one control-cluster kind-control-plane
definition with Crossplane
running in kind
locally and a target small workload cluster d1-blue
running in Azure AKS
created by Crossplane
, which was mentioned earlier. Both clusters configuration described with FluxCD
manifests.
Kind cluster going to be bootstrapped with bashscript. Then another script install flux operator in kind control cluster. Finally flux will do other steps itself.
All secrets store inside .env
file.
- Install toolset on your machine:
kubectl
*helm
*kind
* - local k8s clustergh
- work with githubngrok
- exposing local container outside for exposing.
-
- mandatory tools
- Create/fork a repo where flux will store state.
- Create a GitHub App for authentication to flux repo.
- Save pem cert from GHApp into
ghapp.pem
file. Install GHApp into flux repo with at least write code permission. - Execute
start.sh
- it creates kind cluster and bootstrap flux into it. It also create k8s secret with azure creds for crossplaneProviderConfig
.
Finish with stop.sh
- it destroy kind cluster.
Note: Check Azure resource after destroying kind control cluster!
Note: I prefer
zsh
as working shell with some plugins and autocompletion to speed up Ops tasks.