argoCD CLI - jupark33/Spring GitHub Wiki
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl get po -n argocd
// ์ธ๋ถ ๋
ธ์ถ NodePort
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}'
// ํ๋ ๋ด๋ถ ์ง์
kubectl exec -it argocd-server-56f7986dff-znzwc -n argocd -- bash
// argocd ๋ก๊ทธ์ธ
argocd login ip:port
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v2.9.9/manifests/install.yaml
kubectl delete -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" ;echo
kubectl get pods -n argocd
kubectl describe svc argocd-server -n argocd
- argoCD ์๋ฒ ์ปจํ
์ด๋ ๋ด๋ถ ์ง์
, argocd ๋ก๊ทธ์ธ
kubectl exec -it argocd-server-difjkleknofw-kjfdd -n argocd -- bash
argocd login x.x.x.x:8080
kubectl create namespace echo
- sample app ๋ฐฐํฌ, (argoCD ์๋ฒ ์ปจํ
์ด๋ ๋ด๋ถ ์ง์
, argocd ๋ก๊ทธ์ธ ํ)
argocd app create sample-app --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default
argocd app sync sample-app
kubectl get service -n default
kubectl port-forward svc/guestbook-ui 9090:80

argocd app create echo --repo http://host.docker.internal:9080/gitops/echo.git --path echo --dest-server https://kubernetes.default.svc --dest-namespace echo