Skip to content

Commit 55ce34f

Browse files
authored
Create ARGOCD.md
1 parent 23542b8 commit 55ce34f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

ARGOCD.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Setup Port-Forwarding
2+
As we are working in a simple kind cluster without ingress or Service LB support we will use a port-forward to the ArgoCD Server to access ArgoCD from the CLI or the UI
3+
```bash
4+
kubectl port-forward -n argocd svc/argocd-server 8080:443 &
5+
```
6+
7+
# Configure the ArgoCD CLI
8+
```bash
9+
export ARGOCD_ADMIN_PASSWORD=`kubectl get secret -n argocd argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 --decode`
10+
argocd login --username admin --password $ARGOCD_ADMIN_PASSWORD localhost:8080 --insecure
11+
```
12+
13+
# Open the ArgoCD UI
14+
* Retrieve the Admin Password
15+
```bash
16+
export ARGOCD_ADMIN_PASSWORD=`kubectl get secret -n argocd argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 --decode`
17+
echo "ArgoCD Admin Password: ${ARGOCD_ADMIN_PASSWORD}"
18+
```
19+
* Go to https://localhost:8080
20+
* Login with the username `admin` and the password retrieved above
21+
22+
# Stop the Port Forward
23+
```bash
24+
kill $(ps -ef | grep '[k]ubectl port-forward -n argocd svc/argocd-server' | awk '{print $2}')
25+
```

0 commit comments

Comments
 (0)