https://github.com/cryptorodeo/argocd-demo
https://github.com/cryptorodeo/argocd-demo
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cryptorodeo/argocd-demo
- Owner: CryptoRodeo
- Created: 2025-02-07T15:48:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-27T19:58:40.000Z (over 1 year ago)
- Last Synced: 2025-07-09T21:06:31.390Z (11 months ago)
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ArgoCD Demo
Creates a basic ArgoCD instance for testing
## Setup
### Minikube
1. Create the namespace:
```bash
kubectl create namespace argocd
```
2. Apply ArgoCD Manifests:
```bash
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
```
3. Get the initial admin password:
```
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
```
4. Access the ArgoCD API Server using a NodePort service:
```
kubectl apply -f service.yml
```
5. Get the service URL
```bash
# For Minikube
# Get the service URL
minikube service argocd-server-nodeport -n argocd
```
6. Install the ArgoCD CLI:
```bash
curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
rm argocd-linux-amd64
```
7. Access `:30080` with username: admin, password: ``:
```bash
argocd login :30080 --username admin --password --insecure
```
8. Add your cluster to ArgoCD:
```bash
argocd cluster add
```
9. Get your cluster's server URL and port:
```bash
kubectl config view -o jsonpath='{.clusters[?(@.name=="minikube")].cluster.server}'
```
10. Add your application:
```bash
argocd app create nginx-demo \
--repo https://github.com/cryptorodeo/argocd-demo \
--path . \
--dest-server https:// \
```
11. Confirm that your application is live on ArgoCD
```bash
argocd app list
```
12. Run a sync
```bash
argocd app sync nginx-demo
```
13. Monitor the deployment
```bash
argocd app get nginx-demo
kubectl get po -n argocd
```