Template repository for ArgoCD deployment to kubernetes cluster
"application.yaml" ApplicationSet for ArgoCD, need to be deployed to "argocd" NameSpace (same ns where ArgoCD deployed)
This ApplicationSet deploy DesiredState to "app" NameSpace from "k8s" directory in this repository
- Deploy ArgoCD to your cluster
- Create NameSpace for ArgoCD service
kubectl create namespace argocd
- Apply official ArgoCD Helm chart to a new NameSpace
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- Access the GUI of ArgoCD service
- Print list of services that were deployed to "argocd" namespace
kubectl get svc -n argocd
- "argocd-service" is IP for GUI on port 80/443/TCP, you can port-forward to your local machine
kubectl port-forward -n argocd svc/argocd-server 8080:443
- User Name is Admin
- Get password
kubectl get secret argocd-initial-admin-secret -n argocd -o yaml | grep password: | awk '{print $2}' | base64 --decode
- Apply application.yaml
- Create NameSpace "app" to deploy there desiredState
kubectl create namespace app
- Apply "application.yaml" file to deploy desiredState files from "k8s" directory to "app" namespace
kubectl apply -n argocd -f application.yaml