Skip to content
/ ArgoCD Public

Template repository for ArgoCD deployment to Kubernetes

Notifications You must be signed in to change notification settings

Joska99/ArgoCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArgoCD template repository

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

  1. 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
  1. 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
  1. 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