Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 953 Bytes

AWSCodeCommit-Bootstrap.md

File metadata and controls

30 lines (22 loc) · 953 Bytes

Bootstrap the management cluster (using AWS CodeCommit repos)

  1. Bootstrap Flux on the management cluster with the mgmt cluster config path. The bootstrap process is customized to support AWS CodeCommit integration.
export CLUSTER_NAME=mgmt

cd ~/environment/gitops-system

kubectl apply -f ./clusters/${CLUSTER_NAME}/flux-system/gotk-components.yaml

kubectl create secret generic flux-system -n flux-system \
    --from-file=identity=${HOME}/.ssh/gitops \
    --from-file=identity.pub=${HOME}/.ssh/gitops.pub \
    --from-file=known_hosts=${HOME}/.ssh/codecommit_known_hosts

kubectl apply -f ./clusters/${CLUSTER_NAME}/flux-system/gotk-sync.yaml
  1. Track the progress of the Flux deployments using the Flux CLI. This may take >30 minutes due to exponential backoff, however this is only a one-time process.
flux get all

You can watch this to see once it's ready by using:

watch -n 30 -d flux get all