meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| linux:install_awx [22/02/2026 18:39] – mdl | linux:install_awx [01/03/2026 16:32] (Version actuelle) – mdl | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Installation AWX 18+ sur | + | ====== Installation AWX 18+ sur |
| == Environnement == | == Environnement == | ||
| * **HOST:** VM Rocky Linux 9 | * **HOST:** VM Rocky Linux 9 | ||
| - | * **FS:** OS 20GB | + | * **FS:** |
| + | | ||
| + | * AWX: 25GB | ||
| * **CPU:** 4VCPU | * **CPU:** 4VCPU | ||
| * **RAM:** 8GB | * **RAM:** 8GB | ||
| Ligne 11: | Ligne 13: | ||
| * Installation des Paquets de base | * Installation des Paquets de base | ||
| <code BASH> | <code BASH> | ||
| - | dnf install wget nmap | + | dnf install wget nmap curl make git epel-release |
| </ | </ | ||
| + | |||
| + | |||
| + | * FS Dedié AWX | ||
| + | <code BASH> | ||
| + | [root@awx ~]# pvcreate /dev/xvdb | ||
| + | Physical volume "/ | ||
| + | |||
| + | [root@awx ~]# vgcreate vg_awx | ||
| + | Volume group " | ||
| + | | ||
| + | [root@awx ~]# lvcreate -n lv_awx | ||
| + | Logical volume " | ||
| + | |||
| + | [root@awx ~]# mkfs.xfs / | ||
| + | meta-data=/ | ||
| + | | ||
| + | | ||
| + | | ||
| + | data | ||
| + | | ||
| + | naming | ||
| + | log =internal log | ||
| + | | ||
| + | realtime =none | ||
| + | |||
| + | |||
| + | [root@awx ~]# mkdir -p /awx-data | ||
| + | |||
| + | [root@awx ~]# cat / | ||
| + | # | ||
| + | # /etc/fstab | ||
| + | # Created by anaconda on Sun Feb 22 16:51:04 2026 | ||
| + | # | ||
| + | # Accessible filesystems, | ||
| + | # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info. | ||
| + | # | ||
| + | # After editing this file, run ' | ||
| + | # units generated from this file. | ||
| + | # | ||
| + | / | ||
| + | UUID=05cdbb8e-0540-423e-bd38-bdc62f632cd5 /boot | ||
| + | UUID=3F3E-4DE5 | ||
| + | / | ||
| + | # | ||
| + | ### Kubernetes storage | ||
| + | / | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | [root@awx ~]# mount -a | ||
| + | mount: (hint) your fstab has been modified, but systemd still uses | ||
| + | the old version; use ' | ||
| + | [root@awx ~]# | ||
| + | [root@awx ~]# | ||
| + | [root@awx ~]# systemctl daemon-reload | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| * installation de docker-ce | * installation de docker-ce | ||
| Ligne 114: | Ligne 176: | ||
| </ | </ | ||
| - | Demarrage | + | * Démarrage |
| <code BASH> | <code BASH> | ||
| [root@awx ~]# systemctl start docker | [root@awx ~]# systemctl start docker | ||
| Ligne 148: | Ligne 210: | ||
| - | installation de kubernetes | + | * installation de kubernetes |
| <code BASH> | <code BASH> | ||
| [root@awx ~]# curl -LO " | [root@awx ~]# curl -LO " | ||
| Ligne 160: | Ligne 222: | ||
| - | installation de k3d (distribution minimaliste de Kubernetes fournie par Rancher Lab basée sur des machines virtuelles. K3d est un wrapper léger de k3s pour fonctionner avec Docker.) | + | * installation de k3d (distribution minimaliste de Kubernetes fournie par Rancher Lab basée sur des machines virtuelles. K3d est un wrapper léger de k3s pour fonctionner avec Docker.) |
| <code BASH> | <code BASH> | ||
| [root@awx ~]# wget -q -O - https:// | [root@awx ~]# wget -q -O - https:// | ||
| Ligne 171: | Ligne 233: | ||
| + | * création du cluster | ||
| + | <code BASH> | ||
| + | [root@awx ~]# k3d cluster create cluster1 | ||
| + | INFO[0000] Prep: Network | ||
| + | INFO[0000] Created network ' | ||
| + | INFO[0000] Created image volume k3d-cluster1-images | ||
| + | INFO[0000] Starting new tools node... | ||
| + | INFO[0000] Starting node ' | ||
| + | INFO[0001] Creating node ' | ||
| + | INFO[0001] Creating LoadBalancer ' | ||
| + | INFO[0001] Using the k3d-tools node to gather environment information | ||
| + | INFO[0001] HostIP: using network gateway 172.18.0.1 address | ||
| + | INFO[0001] Starting cluster ' | ||
| + | INFO[0001] Starting servers... | ||
| + | INFO[0001] Starting node ' | ||
| + | INFO[0005] All agents already running. | ||
| + | INFO[0005] Starting helpers... | ||
| + | INFO[0005] Starting node ' | ||
| + | INFO[0011] Injecting records for hostAliases (incl. host.k3d.internal) and for 2 network members into CoreDNS configmap... | ||
| + | INFO[0013] Cluster ' | ||
| + | INFO[0013] You can now use it like this: | ||
| + | kubectl cluster-info | ||
| + | [root@awx ~]# kubectl cluster-info | ||
| + | Kubernetes control plane is running at https:// | ||
| + | CoreDNS is running at https:// | ||
| + | Metrics-server is running at https:// | ||
| + | To further debug and diagnose cluster problems, use ' | ||
| + | |||
| + | [root@awx ~]# kubectl get nodes | ||
| + | NAME STATUS | ||
| + | k3d-cluster1-server-0 | ||
| + | |||
| + | </ | ||
| + | |||
| + | == Installation HELM == | ||
| + | HELM est le gestionnaire de paquets pour Kubernetes | ||
| + | |||
| + | <code BASH> | ||
| + | [root@awx ~]# dnf install helm | ||
| + | Dernière vérification de l’expiration des métadonnées effectuée il y a 0:09:02 le sam. 28 févr. 2026 11:53:17. | ||
| + | Dépendances résolues. | ||
| + | ============================================================================================================================================================================================================== | ||
| + | | ||
| + | ============================================================================================================================================================================================================== | ||
| + | Installation: | ||
| + | | ||
| + | |||
| + | Résumé de la transaction | ||
| + | ============================================================================================================================================================================================================== | ||
| + | Installer | ||
| + | |||
| + | Taille totale des téléchargements : | ||
| + | Taille des paquets installés : | ||
| + | Voulez-vous continuer ? | ||
| + | Téléchargement des paquets : | ||
| + | helm-4.1.1-1.el9.x86_64.rpm | ||
| + | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| + | Total 15 MB/s | 20 MB | ||
| + | Extra Packages for Enterprise Linux 9 - x86_64 | ||
| + | Import de la clef GPG 0x3228467C : | ||
| + | Utilisateur : « Fedora (epel9) < | ||
| + | Empreinte : FF8A D134 4597 106E CE81 3B91 8A38 72BF 3228 467C | ||
| + | Provenance : / | ||
| + | Voulez-vous continuer ? | ||
| + | La clé a bien été importée | ||
| + | Test de la transaction | ||
| + | La vérification de la transaction a réussi. | ||
| + | Lancement de la transaction de test | ||
| + | Transaction de test réussie. | ||
| + | Exécution de la transaction | ||
| + | Préparation | ||
| + | Installation | ||
| + | Exécution du scriptlet: helm-4.1.1-1.el9.x86_64 | ||
| + | Vérification de : helm-4.1.1-1.el9.x86_64 | ||
| + | |||
| + | Installé: | ||
| + | helm-4.1.1-1.el9.x86_64 | ||
| + | |||
| + | Terminé ! | ||
| + | |||
| + | |||
| + | [root@awx ~]# helm version | ||
| + | version.BuildInfo{Version:" | ||
| + | |||
| + | |||
| + | </ | ||