Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Sample repository for Amazon EKS bootstrap with FluxCD (v2)

License

Notifications You must be signed in to change notification settings

davivcgarcia/eks-fluxcd-bootstrap-archived

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eks-fluxcd-bootstrap

This repository contains non-production FluxCD manifests used on GitOps-based bootstrap of Amazon EKS sandbox clusters.

Prerequisites

  • eksctl, >= 0.58.0
  • awscli, >= 2.2.25

Setup

  1. Fork this repository

  2. Create an GitHub Personal Access Token, and export it to environment variables:

export GITHUB_TOKEN=<REDACTED>
export GITHUB_USER=<GH USERNAME>
  1. 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
  1. Modify the owner on eksctl-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
  1. Create the Amazon EKS cluster with eksctl:
eksctl create cluster -f helpers/eksctl-config.yaml

Cleanup

  1. Delete your Amazon EKS cluster:
eksctl delete cluster --name sandbox
  1. Delete the remote and local demo branch of your forked repository:
git checkout main
git push --delete origin demo
git branch -D demo

About

Sample repository for Amazon EKS bootstrap with FluxCD (v2)

Topics

Resources

License

Stars

Watchers

Forks