This repository contains non-production FluxCD manifests used on GitOps-based bootstrap of Amazon EKS sandbox clusters.
- eksctl, >= 0.58.0
- awscli, >= 2.2.25
-
Fork this repository
-
Create an GitHub Personal Access Token, and export it to environment variables:
export GITHUB_TOKEN=<REDACTED>
export GITHUB_USER=<GH USERNAME>
- Checkout the fork repository, create the
demo
branch and push to the origin:
git clone https://github.com/davivcgarcia/eks-fluxcd-bootstrap.git
cd eks-fluxcd-bootstrap/
git checkout -b demo
git push -u origin demo
- Modify the
owner
oneksctl-config.yaml
file to use your GitHub username:
gitops:
flux:
gitProvider: github
flags:
owner: davivcgarcia
repository: eks-fluxcd-bootstrap
private: "false"
branch: demo
path: ./clusters/sandbox/
namespace: flux-system
- Create the Amazon EKS cluster with
eksctl
:
eksctl create cluster -f helpers/eksctl-config.yaml
- Delete your Amazon EKS cluster:
eksctl delete cluster --name sandbox
- Delete the remote and local
demo
branch of your forked repository:
git checkout main
git push --delete origin demo
git branch -D demo