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:40] – 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 173: | Ligne 235: | ||
| * création du cluster | * création du cluster | ||
| <code BASH> | <code BASH> | ||
| - | [root@awx ~]# k3d cluster create | + | [root@awx ~]# k3d cluster create |
| INFO[0000] Prep: Network | INFO[0000] Prep: Network | ||
| - | INFO[0000] Created network 'k3d-k3d-cluster' | + | INFO[0000] Created network 'k3d-cluster1' |
| - | INFO[0000] Created image volume k3d-k3d-cluster-images | + | INFO[0000] Created image volume k3d-cluster1-images |
| INFO[0000] Starting new tools node... | INFO[0000] Starting new tools node... | ||
| - | INFO[0000] | + | INFO[0000] |
| - | INFO[0001] Creating node 'k3d-k3d-cluster-server-0' | + | INFO[0001] Creating node 'k3d-cluster1-server-0' |
| - | INFO[0002] Pulling image ' | + | INFO[0001] Creating LoadBalancer 'k3d-cluster1-serverlb' |
| - | INFO[0002] Starting node ' | + | INFO[0001] Using the k3d-tools node to gather environment information |
| - | INFO[0005] Creating LoadBalancer 'k3d-k3d-cluster-serverlb' | + | INFO[0001] HostIP: using network gateway 172.18.0.1 address |
| - | INFO[0005] Pulling image ' | + | INFO[0001] Starting cluster 'cluster1' |
| - | INFO[0007] Using the k3d-tools node to gather environment information | + | INFO[0001] Starting servers... |
| - | INFO[0008] HostIP: using network gateway 172.18.0.1 address | + | INFO[0001] Starting node 'k3d-cluster1-server-0' |
| - | INFO[0008] Starting cluster 'k3d-cluster' | + | INFO[0005] All agents already running. |
| - | INFO[0008] Starting servers... | + | INFO[0005] Starting helpers... |
| - | INFO[0008] Starting node 'k3d-k3d-cluster-server-0' | + | INFO[0005] Starting node 'k3d-cluster1-serverlb' |
| - | INFO[0011] All agents already running. | + | INFO[0011] Injecting records for hostAliases (incl. host.k3d.internal) and for 2 network members into CoreDNS configmap... |
| - | INFO[0011] Starting helpers... | + | INFO[0013] Cluster 'cluster1' created successfully! |
| - | INFO[0012] Starting node 'k3d-k3d-cluster-serverlb' | + | INFO[0013] You can now use it like this: |
| - | INFO[0018] Injecting records for hostAliases (incl. host.k3d.internal) and for 2 network members into CoreDNS configmap... | + | |
| - | INFO[0020] Cluster 'k3d-cluster' created successfully! | + | |
| - | INFO[0020] You can now use it like this: | + | |
| kubectl cluster-info | 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 | [root@awx ~]# kubectl get nodes | ||
| - | NAME | + | NAME STATUS |
| - | k3d-k3d-cluster-server-0 | + | 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:" | ||
| + | |||
| + | |||
| + | </ | ||