This repo contains a simple deployment of fluxCD to deploy the code challenge images to a kubernetes cluster.
- fluxcd
- kustomize
- kubectl
- An Kubernetes cluster
- A GitHub repository to store the kustomizations
- A Personal Access Token with read packages permissions
You need to be logged in to the cluster before running the following commands.
create the pull secret for the fluxcd repository
kubectl create secret docker-registry pullsecret --docker-server=https://ghcr.io --docker-username=notneeded --docker-password=GPAT flux bootstrap github \
--components-extra=image-reflector-controller,image-automation-controller \
--owner=klebeer \
--repository=code-challenge \
--branch=main \
--path=devOps/flux/clusters/dev \
--read-write-key