1 h 45 (S2.1 : 1 h · S2.2 : 45 min)
preflight.sh sans KO
Hexa Mobilité prépare sa plateforme GitOps
kind et y installer ArgoCD v3.6.1Running)adminport-forward (NodePort)1 h
--server-side ?Installation = Manifeste (version figée) + Namespace argocd| Variante | Fichier ou outil | Usage |
|---|---|---|
| Standard | manifests/install.yaml |
Formation, petites équipes |
| Haute disponibilité | manifests/ha/install.yaml |
Production (3 nœuds minimum) |
| Core | manifests/core-install.yaml |
Sans UI ni SSO (CLI --core) |
| Namespaced | manifests/namespace-install.yaml |
Droits limités à des namespaces |
| Chart Helm | argo/argo-cd (argo-helm) |
Valeurs paramétrables |
v3.6.1), jamais la branche stable en productionflowchart LR Poste["Poste<br/>kubectl, argocd"] --> Docker["Docker"] Docker --> Node["Nœud kind<br/>v1.36.4"] Node --> NS["Namespace<br/>argocd"] Poste -- "localhost:8443" --> Node
argocd-formation-control-planekind create cluster --config scripts/setup/kind-config.yaml
kubectl get nodesSortie attendue :
NAME STATUS ROLES AGE VERSION
argocd-formation-control-plane Ready control-plane 40s v1.36.4port 8443 déjà utilisé sur le poste → création du cluster refusée
kubectl create namespace argocd
kubectl apply -n argocd --server-side --force-conflicts \
-f https://raw.githubusercontent.com/argoproj/argo-cd/v3.6.1/manifests/install.yamlSortie attendue (fin) :
networkpolicy.networking.k8s.io/argocd-server-network-policy serverside-applied--server-side ?
Apply client = annotation last-applied (limite 262 Ko)ApplicationSet > 262 Ko : kubectl apply classique échoue--server-side : calcul de la fusion par l'API server, sans annotation--force-conflicts : reprise des champs gérés par un autre outil (mise à jour)Avant (2.x): kubectl apply -n argocd -f install.yaml
Après (3.x): kubectl apply -n argocd --server-side --force-conflicts -f install.yaml
Runningkubectl wait --for=condition=Available deployment --all -n argocd --timeout=600s
kubectl get pods -n argocdSortie attendue :
NAME READY STATUS RESTARTS AGE
argocd-application-controller-0 1/1 Running 0 34s
argocd-applicationset-controller-f6bc6968d-xtpwx 1/1 Running 0 35s
argocd-dex-server-55b9777447-tsv7g 1/1 Running 0 35s
argocd-notifications-controller-b9499f64b-jnzxh 1/1 Running 0 35s
argocd-redis-79f897d5d9-cp6lp 1/1 Running 0 35s
argocd-repo-server-75fcf89b6b-wdm57 1/1 Running 0 35s
argocd-server-67795db55d-pzk69 1/1 Running 0 34supgrading/3.x-3.y)install.yamlkustomization.yaml = install.yaml v3.6.1 + patchs maison (défi 02.4)
45 min
argocd-server n'est pas exposé par défaut| Méthode | Commande ou objet | Usage |
|---|---|---|
| Port-forward | kubectl port-forward |
Test, poste local |
| NodePort | type: NodePort |
Lab, cluster sans load balancer |
| LoadBalancer | type: LoadBalancer |
Cloud (IP externe) |
| Ingress / Gateway | Ingress, HTTPRoute |
Production (nom DNS, TLS) |
fin de maintenance d'ingress-nginx annoncée (mars 2026) → Gateway API à privilégier
kubectl port-forward svc/argocd-server -n argocd 8080:443Sortie attendue :
Forwarding from 127.0.0.1:8080 -> 8080
Forwarding from [::1]:8080 -> 8080https://localhost:8080 (certificat auto-signé à accepter)argocd admin initial-password -n argocd
argocd login localhost:8080 --username admin --insecure
argocd account update-passwordSortie attendue :
'admin:login' logged in successfully
Context 'localhost:8080' updated
Password updated--insecure obligatoire (certificat auto-signé) ; à proscrire en production
flowchart LR UI["UI ArgoCD"] --> Apps["Applications<br/>tuiles, statuts"] UI --> Set["Settings<br/>dépôts, clusters"] UI --> User["User Info<br/>compte, groupes"] UI --> Doc["Documentation"] Apps --> Detail["Vue application<br/>arbre, diff"]
argocd-example-apps)argocd app create guestbook \
--repo https://github.com/argoproj/argocd-example-apps.git --path guestbook \
--dest-server https://kubernetes.default.svc --dest-namespace default
argocd app sync guestbook
argocd app listSortie attendue (colonnes principales) :
NAME CLUSTER NAMESPACE PROJECT STATUS HEALTH
argocd/guestbook https://kubernetes.default.svc default default Synced Healthy| Zone | Contenu | Action |
|---|---|---|
| En-tête | Sync, Health, révision Git | Sync, Refresh |
| Arbre | Application → Service, Deployment → ReplicaSet → Pod | Clic : manifeste, événements, logs |
| App diff | Écart Git ↔ cluster | Avant une sync |
| History and rollback | Révisions déployées | M06 |
admin (argocd account update-password)kubectl delete secret argocd-initial-admin-secret -n argocd)admin (M03)kubectl get secret argocd-initial-admin-secret -n argocdSortie attendue (après suppression) :
Error from server (NotFound): secrets "argocd-initial-admin-secret" not foundsecret initial = mot de passe en clair, inutile après le premier changement
kubectl apply --server-side --force-conflictsargocd, vérifiés par kubectl waitargocd login + changement de mot de passe + suppression du secret initial--server-side est-elle requise pour installer ArgoCD 3.x ?last-appliedargocdApplicationSet dépasse 262 Ko, taille maximale de l'annotation last-applied-configuration de l'apply client.install.yamlcore-install.yamlha/install.yamlnamespace-install.yamlha/install.yaml : réplicas multiples, Redis HA, anti-affinité exigeant au moins 3 nœuds.admin ?argocd-cmargocd-initial-admin-secretargocd-serveradmin par défautargocd-initial-admin-secret, à supprimer après changement du mot de passe.argocd-application-controller-0 ?-0), pour permettre le sharding.kubectl port-forwardargocd-server--insecure est-elle utilisée avec argocd login en lab ?--insecure désactive la vérification du certificat TLS, auto-signé en lab.Synced / HealthyOutOfSync / MissingSynced / DegradedUnknown / ProgressingOutOfSync / Missing.