This repository contains an interactive bash script for setting up ArgoCD on a Kubernetes cluster. The script provides a menu-driven interface to perform various ArgoCD setup tasks individually or in sequence.
The script offers the following operations:
- Install ArgoCD
- Get ArgoCD secret (admin password)
- Set up port-forwarding
- Add load balancer
- A Kubernetes cluster
kubectl
installed and configured to work with your cluster- Necessary permissions to create resources in your cluster
-
Clone this repository:
git clone https://github.com/code4mk/argocd-setup.git cd argocd-setup
-
Make the script executable:
chmod +x setup.sh
-
Run the script:
./setup.sh
-
Follow the on-screen menu to perform desired operations.
- Install ArgoCD: Creates a namespace for ArgoCD and installs it using the official manifest.
- Get ArgoCD Secret: Retrieves and decodes the initial admin password for ArgoCD.
- Set up Port-Forwarding: Establishes port-forwarding to access the ArgoCD UI locally.
- Add Load Balancer: Patches the ArgoCD server service to use a LoadBalancer for external access.
- The script assumes you have the necessary permissions in your Kubernetes cluster.
- Port-forwarding (option 3) will run in the background. Press Enter to stop it when you're done.
- After adding a load balancer (option 4), it may take a few minutes for an external IP to be assigned.
Contributions to improve the script or documentation are welcome. Please feel free to submit a pull request or open an issue for any bugs or feature requests.
This project is licensed under the MIT License - see the LICENSE file for details.