Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1003 Bytes

File metadata and controls

32 lines (25 loc) · 1003 Bytes

Flux Deployment

Description

This repo contains a simple deployment of fluxCD to deploy the code challenge images to a kubernetes cluster.

Prerequisites

  • 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.

Install fluxCd

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