Simple setup guide for the GitOps ngrok demo.
- Kubernetes cluster (1.19+)
- ArgoCD installed
- ngrok account with API key and authtoken
- kubectl configured for your cluster
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yamlNote: The demo uses Helm charts for the ngrok operator to ensure all required CRDs are properly installed.
kubectl create namespace ngrok-operator
kubectl create secret generic ngrok-operator-credentials \
--from-literal=API_KEY=your_ngrok_api_key \
--from-literal=AUTHTOKEN=your_ngrok_authtoken \
-n ngrok-operatorThis demo uses the public repository https://github.com/ngrok-samples/gitops.
If you want to make modifications:
- Fork this repository to your own GitHub account
- Update the
repoURLin these files with your fork's URL:argocd/app-of-apps.yamlargocd/applications/infrastructure.yamlargocd/applications/demo-app.yaml
For testing: You can use the demo as-is without forking.
kubectl apply -f argocd/app-of-apps.yaml# Get the admin password
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
# Port forward to access UI
kubectl port-forward svc/argocd-server -n argocd 8080:443Access ArgoCD at https://localhost:8080 with username admin.
- Check ArgoCD applications are synced
- Verify pods are running:
kubectl get pods -n ngrok-operator kubectl get pods -n api-demo
- Check the ngrok endpoint:
kubectl get agentendpoint -n api-demo
- Access your application at
https://gitops-demo.ngrok.app/api/
- ngrok operator not starting: Check credentials secret
- Endpoint not ready: Verify ngrok domain configuration
- ArgoCD sync issues: Check repository permissions and URLs
# Check ArgoCD applications
kubectl get applications -n argocd
# View ngrok operator logs
kubectl logs -n ngrok-operator deployment/ngrok-operator
# Check ngrok endpoint status
kubectl describe agentendpoint api-demo-endpoint -n api-demo
# View application logs
kubectl logs -n api-demo deployment/api-demo