Filters
Zo zoek je
  • Gewone woorden vinden namen, teksten en voorbeelden.
  • "twee woorden" vindt precies die zin.
  • --naam of -x vindt een optie.
  • #woord zoekt alleen in commando's.
  • @grep vindt lessen en labs die grep gebruiken.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Zet ! voor een woord om het weg te laten. OR tussen woorden betekent één ervan.
  • ↑ ↓ bewegen · Enter openen · Esc sluiten · / zoeken

Hoofdstuk 3Naam in de cursus: Argo CD getting started

Install and log in to Argo CD

Argo CD runs in its own namespace, watches Git, and shows every application, its sync state and health in a web UI and the argocd CLI.

  • 4 Lessen
  • 5 Commando's

Dit deel is nog niet vertaald. Je ziet de Engelse tekst.

$ als gewone gebruiker# als root (of met sudo)

3.1

Install Argo CD

Apply the official manifests (or the Helm chart) into the argocd namespace.

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl get pods -n argocd
helm repo add argo https://argoproj.github.io/argo-helm
helm install argocd argo/argo-cd -n argocd --create-namespace
ComponentJob
argocd-serverAPI and web UI
argocd-repo-serverClones Git and renders manifests (Helm, Kustomize)
argocd-application-controllerCompares and syncs applications
argocd-dex-serverSSO (optional)
redisCache

3.2

Log in

The first admin password is in a secret. Change it, then prefer SSO.

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d; echo
kubectl port-forward svc/argocd-server -n argocd 8080:443
argocd login localhost:8080 --username admin --insecure
argocd account update-password
kubectl -n argocd delete secret argocd-initial-admin-secret

Let op

Do not expose the Argo CD UI to the internet without SSO and TLS — it can change every application in the cluster.

3.3

Connect a repository

Public repositories work at once. Private ones need a deploy key or a token — read-only.

ssh-keygen -t ed25519 -f argocd-deploy -N ''
argocd repo add git@github.com:s0sta/shop-deploy.git --ssh-private-key-path argocd-deploy
argocd repo list

Add argocd-deploy.pub in GitHub → repository → Settings → Deploy keys (read-only).

3.4

Use the CLI

Everything in the UI can be done with argocd.

argocd app list
argocd app get shop-prod
argocd app diff shop-prod
argocd app sync shop-prod
argocd app history shop-prod
argocd app rollback shop-prod 3
argocd cluster list

Alle commando's in dit hoofdstuk