ArgoCD on Mac

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes.

https://argo-cd.readthedocs.io/en/stable/

Install Argocd CLI on mac

brew install argocd

Install Agrocd on K8s Cluster

kubectl create namespace argo-rollouts
kubectl apply -n argo-rollouts -f https://raw.githubusercontent.com/argoproj/argo-rollouts/stable/manifests/install.yaml

Change Service Type for example NodePort

kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}'

If you want to set up specific port

kubectl edit service argocd-server -n argocd 
  - name: http
    nodePort: 30004
    port: 80
    protocol: TCP
    targetPort: 8080
  - name: https
    nodePort: 30005
    port: 443

Get Default Password

kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2

Login and check the argocd context

argocd login --name ${k8s-name} ${agrocd-server} --grpc-web

example

  • name: prod-argocd
  • agrocd-server: 192.168.64.1530005
argocd context 
# CURRENT  NAME         SERVER
#         dev-argocd   192.168.64.15:30005

Leave a Reply

Your email address will not be published.

ANOTE.DEV