Argocd: Difference between revisions

From Halfface
Jump to navigation Jump to search
Line 1: Line 1:
=download binary=
curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
rm argocd-linux-amd64
=login=
=login=
  argocd login openshift-gitops-server-openshift-gitops.apps.$(oc get DNS cluster -o=jsonpath='{.spec.baseDomain}') --username kubeadmin --password <password> --sso --insecure
  argocd login openshift-gitops-server-openshift-gitops.apps.$(oc get DNS cluster -o=jsonpath='{.spec.baseDomain}') --username kubeadmin --password <password> --sso --insecure
  argocd repo add https://inter.net/spam.git --username <username> --password <password> --insecure-skip-server-verification
  argocd repo add https://inter.net/spam.git --username <username> --password <password> --insecure-skip-server-verification
=file completion=
=file completion=
  . <(argocd completion bash)
  . <(argocd completion bash)

Revision as of 21:00, 17 November 2023

download binary

curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
rm argocd-linux-amd64

login

argocd login openshift-gitops-server-openshift-gitops.apps.$(oc get DNS cluster -o=jsonpath='{.spec.baseDomain}') --username kubeadmin --password <password> --sso --insecure
argocd repo add https://inter.net/spam.git --username <username> --password <password> --insecure-skip-server-verification

file completion

. <(argocd completion bash)

list applications

argocd --grpc-web app list --grpc-web

sync application

argocd --grpc-web app sync openshift-gitops/rb-infra-ocp-02

what does it mean

ApplicationSet               Automating the generation of Argo CD Applications with the ApplicationSet Controller

look at attributes

oc api-resources | grep -Ei 'argo|git' | while read line end ; do echo '***' $line $end ; oc get $line -A ; done