Skip to content

Commit

Permalink
Automating Flux and Flux Controller Install
Browse files Browse the repository at this point in the history
  • Loading branch information
elamaran11 committed Jan 19, 2023
1 parent 8c02256 commit a1dc0ce
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
20 changes: 4 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,11 @@ Deployment of a third-party solution requires a PR for a FluxCD deployment submi

This solution requires Flux CLI locally and Flux Controller on your Kubernetes cluster. Please follow the below steps for installing these pre-requisites :

🚀 Install Flux CLI:
```bash
echo "----------------------------------------------------"
echo "Downloading 'Flux' ..."
curl -O "https://toolkit.Fluxcd.io/install.sh" --silent --location
echo "Installing 'Flux' ..."
chmod +x ./install.sh
./install.sh
rm -rf ./install.sh
```

🚀 Install Flux Controller (assuming you have kubectl access to the target cluster):
```bash
flux install \
--namespace=flux-system \
--network-policy=false \
--components=source-controller,helm-controller,kustomize-controller,notification-controller
git clone https://github.com/aws-samples/eks-anywhere-addons.git
cd eks-anywhere-addons
chmod +x installFlux.sh
./installFlux.sh
```

## Local Testing (Linux/MacOS)
Expand Down
15 changes: 15 additions & 0 deletions installFlux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

# Step 1 - Installs Flux on your local machine.
echo "----------------------------------------------------"
echo "Downloading 'Flux' ..."
curl -O "https://toolkit.Fluxcd.io/install.sh" --silent --location
echo "Installing 'Flux' ..."
chmod +x ./install.sh
./install.sh
rm -rf ./install.sh

# Step 2 - Installs Flux Controller on your Kubernetes Cluster.
flux install \
--namespace=flux-system \
--network-policy=false \
--components=source-controller,helm-controller,kustomize-controller,notification-controller

0 comments on commit a1dc0ce

Please sign in to comment.