kustomize build .\argocd | kubectl apply -f -
- port forward the argocd-server
kubectl port-forward <argocd-server-pod-name> <local-port>:<service-port>
https://argoproj.github.io/argo-cd/cli_installation/
argocd login localhost:<local-port> --grpc-web
- user: admin
- password:
kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2
--grpc-web
flag is needed because of argoproj/argo-cd#2580
argocd repo add [email protected]:vargaadam/k8s-ops.git --insecure-ignore-host-key --ssh-private-key-path <path-to-ssh-private-key>
argocd cluster add <stage-cluster-name> --name stage
argocd cluster add <prod-cluster-name> --name prod
kustomize build . | kubectl apply -f -
- Generate
htpasswd
withdocker run --entrypoint htpasswd registry:2.7.0 -Bbn <user> <pass>
and change the secret value. - Create a imagePullSecret for the appropriate cluster :
kubectl create secret docker-registry regcred --docker-server=<registry.your_domain> --docker-username=<user> --docker-password=<pass>
- registry-cred will pick up the cred and populate it to the service accounts