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 [15/02/2026 17:14] – mdl | linux:install_awx [01/03/2026 16:32] (Version actuelle) – mdl | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Installation AWX 18+ sur | + | ====== Installation AWX 18+ sur |
| - | Cette installation a été faite sur un microk8s sur UBUNTU 25.10: | + | == Environnement == |
| - | * **CPU: | + | * **HOST:** VM Rocky Linux 9 |
| + | * **FS:** | ||
| + | * OS: 20GB | ||
| + | * AWX: 25GB | ||
| + | * **CPU: | ||
| * **RAM:** 8GB | * **RAM:** 8GB | ||
| - | * **Disque OS**: 20GB | ||
| - | * **Disque DATA**: 20GB | ||
| - | * LVM 15GB monté sur <color # | ||
| - | |||
| - | <code BASH> | ||
| - | | ||
| - | ubuntu-lv ubuntu-vg -wi-ao---- 10, | ||
| - | lv_data | ||
| - | </ | ||
| == Prérequis == | == Prérequis == | ||
| - | * Install docker | ||
| - | <code BASH> | ||
| - | sudo apt install docker.io -y | ||
| - | sudo usermod -aG docker $USER | ||
| - | </ | ||
| - | * Install microk8s | + | * Installation des Paquets de base |
| <code BASH> | <code BASH> | ||
| - | sudo snap install | + | dnf install |
| - | sudo usermod -aG microk8s $USER | + | |
| - | echo "alias kubectl=\" | + | |
| </ | </ | ||
| - | * se délogguer et se reloguer, test kubernetes | ||
| - | <code BASH> | ||
| - | kubectl get nodes | ||
| - | kubectl get pods | ||
| - | kubectl get pods -A | ||
| - | </ | ||
| - | == Installation AWX == | + | |
| - | | + | |
| <code BASH> | <code BASH> | ||
| - | kubectl apply -f https://raw.githubusercontent.com/ansible/awx-operator/0.12.0/deploy/awx-operator.yaml | + | [root@awx ~]# pvcreate |
| - | kubectl get pods | + | Physical volume "/ |
| + | |||
| + | [root@awx ~]# vgcreate vg_awx | ||
| + | Volume group " | ||
| + | |||
| + | [root@awx ~]# lvcreate | ||
| + | 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 | ||
| + | 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 | ||
| + | |||
| + | |||
| </ | </ | ||
| - | | + | |
| + | | ||
| <code BASH> | <code BASH> | ||
| - | cat <<EOF | kubectl create | + | root@awx ~]# dnf config-manager --add-repo=https:// |
| - | --- | + | Ajout du dépôt depuis : https:// |
| - | apiVersion: v1 | + | [root@awx ~]# dnf install docker-ce -y |
| - | kind: PersistentVolumeClaim | + | Docker CE Stable - x86_64 |
| - | metadata: | + | Dépendances résolues. |
| - | | + | ============================================================================================================================================================================================================== |
| - | spec: | + | |
| - | | + | ============================================================================================================================================================================================================== |
| - | - ReadWriteOnce | + | Installation: |
| - | | + | docker-ce |
| - | | + | Installation des dépendances: |
| - | | + | |
| - | | + | |
| - | EOF | + | |
| + | | ||
| + | | ||
| + | | ||
| + | Installation des dépendances faibles: | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | Résumé de la transaction | ||
| + | ============================================================================================================================================================================================================== | ||
| + | Installer | ||
| + | |||
| + | Taille totale des téléchargements : 100 M | ||
| + | Taille des paquets installés : | ||
| + | Téléchargement des paquets : | ||
| + | (1/10): docker-buildx-plugin-0.31.1-1.el9.x86_64.rpm | ||
| + | (2/10): containerd.io-2.2.1-1.el9.x86_64.rpm | ||
| + | (3/10): docker-ce-29.2.1-1.el9.x86_64.rpm | ||
| + | (4/10): docker-ce-cli-29.2.1-1.el9.x86_64.rpm | ||
| + | (5/10): docker-ce-rootless-extras-29.2.1-1.el9.x86_64.rpm | ||
| + | (6/10): container-selinux-2.240.0-3.el9_7.noarch.rpm | ||
| + | (7/10): fuse-overlayfs-1.16-1.el9_7.x86_64.rpm | ||
| + | (8/10): passt-0^20250512.g8ec1341-4.el9_7.x86_64.rpm | ||
| + | (9/10): passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch.rpm | ||
| + | (10/10): docker-compose-plugin-5.0.2-1.el9.x86_64.rpm | ||
| + | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| + | Total 67 MB/s | 100 MB 00:01 | ||
| + | Docker CE Stable - x86_64 | ||
| + | Import de la clef GPG 0x621E9F35 : | ||
| + | Utilisateur : « Docker Release (CE rpm) < | ||
| + | Empreinte : 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35 | ||
| + | Provenance : https:// | ||
| + | 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: passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch | ||
| + | Installation | ||
| + | Exécution du scriptlet: passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch | ||
| + | Exécution du scriptlet: container-selinux-4: | ||
| + | Installation | ||
| + | Exécution du scriptlet: container-selinux-4: | ||
| + | Installation | ||
| + | Exécution du scriptlet: docker-buildx-plugin-0.31.1-1.el9.x86_64 | ||
| + | Installation | ||
| + | Exécution du scriptlet: docker-compose-plugin-5.0.2-1.el9.x86_64 | ||
| + | Installation | ||
| + | Exécution du scriptlet: docker-ce-cli-1: | ||
| + | Installation | ||
| + | Exécution du scriptlet: containerd.io-2.2.1-1.el9.x86_64 | ||
| + | Installation | ||
| + | Exécution du scriptlet: fuse-overlayfs-1.16-1.el9_7.x86_64 | ||
| + | Installation | ||
| + | Exécution du scriptlet: docker-ce-rootless-extras-29.2.1-1.el9.x86_64 | ||
| + | Installation | ||
| + | Exécution du scriptlet: docker-ce-3: | ||
| + | Exécution du scriptlet: passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch | ||
| + | Exécution du scriptlet: container-selinux-4: | ||
| + | Exécution du scriptlet: docker-ce-3: | ||
| + | Vérification de : containerd.io-2.2.1-1.el9.x86_64 | ||
| + | Vérification de : docker-buildx-plugin-0.31.1-1.el9.x86_64 | ||
| + | Vérification de : docker-ce-3: | ||
| + | Vérification de : docker-ce-cli-1: | ||
| + | Vérification de : docker-ce-rootless-extras-29.2.1-1.el9.x86_64 | ||
| + | Vérification de : docker-compose-plugin-5.0.2-1.el9.x86_64 | ||
| + | Vérification de : container-selinux-4: | ||
| + | Vérification de : fuse-overlayfs-1.16-1.el9_7.x86_64 | ||
| + | Vérification de : passt-0^20250512.g8ec1341-4.el9_7.x86_64 | ||
| + | Vérification de : passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch | ||
| + | |||
| + | Installé: | ||
| + | container-selinux-4: | ||
| + | docker-ce-cli-1: | ||
| + | passt-0^20250512.g8ec1341-4.el9_7.x86_64 | ||
| + | |||
| + | Terminé ! | ||
| + | [root@awx ~]# docker --version | ||
| + | Docker version 29.2.1, build a5c7197 | ||
| </ | </ | ||
| + | * Démarrage et activation du service docker | ||
| <code BASH> | <code BASH> | ||
| - | echo " | + | [root@awx ~]# systemctl start docker |
| - | --- | + | |
| - | apiVersion: awx.ansible.com/v1beta1 | + | [root@awx ~]# systemctl enable docker |
| - | kind: AWX | + | Created symlink / |
| - | metadata: | + | |
| - | name: awx | + | [root@awx ~]# systemctl status docker |
| - | spec: | + | ● docker.service |
| - | | + | |
| - | | + | |
| - | | + | TriggeredBy: ● docker.socket |
| - | | + | Docs: https:// |
| - | - name: static-data | + | Main PID: 3506 (dockerd) |
| - | | + | Tasks: 9 |
| - | | + | Memory: 24.2M (peak: 27.0M) |
| - | - name: awx-data | + | CPU: 127ms |
| - | | + | CGroup: / |
| - | | + | └─3506 / |
| + | |||
| + | févr. 22 19:12:57 awx.labo.delag.fr dockerd[3506]: | ||
| + | févr. 22 19:12:57 awx.labo.delag.fr dockerd[3506]: | ||
| + | févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: | ||
| + | févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: | ||
| + | févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: | ||
| + | févr. 22 19: | ||
| + | févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: | ||
| + | févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: | ||
| + | févr. 22 19: | ||
| + | févr. 22 19:12:58 awx.labo.delag.fr systemd[1]: Started Docker Application Container Engine. | ||
| + | [root@awx ~]# | ||
| </ | </ | ||
| - | | + | |
| + | | ||
| <code BASH> | <code BASH> | ||
| - | kubectl apply -f awx.yml | + | [root@awx ~]# curl -LO "https://dl.k8s.io/release/ |
| - | kubectl get pods -l "app.kubernetes.io/managed-by=awx-operator" | + | % Total % Received % Xferd Average Speed |
| - | kubectl get svc -l "app.kubernetes.io/managed-by=awx-operator" | + | |
| + | 100 55.8M 100 55.8M 0 | ||
| + | |||
| + | [root@awx ~]# install | ||
| </ | </ | ||
| - | Attendre quelques minutes que tous les PODS tournent (running) | ||
| - | | + | |
| + | | ||
| <code BASH> | <code BASH> | ||
| - | kubectl get secrets | + | [root@awx ~]# wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/ |
| - | kubectl get secret | + | |
| - | </code> | + | Preparing to install k3d into / |
| - | * or a more readable version | + | k3d installed into / |
| - | <code BASH> | + | Run ' |
| - | kubectl get secret awx-admin-password -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{" | + | |
| </ | </ | ||
| - | | + | |
| + | | ||
| <code BASH> | <code BASH> | ||
| - | kubectl expose deployment | + | [root@awx ~]# k3d cluster create cluster1 |
| + | INFO[0000] Prep: Network | ||
| + | INFO[0000] Created network 'k3d-cluster1' | ||
| + | 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 | ||
| + | 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 | ||
| </ | </ | ||
| - | * on active | + | == Installation HELM == |
| + | HELM est le gestionnaire de paquets pour Kubernetes | ||
| <code BASH> | <code BASH> | ||
| - | kubectl port-forward svc/awx-service --address | + | [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: | ||
| + | helm | ||
| - | == Test == | + | Résumé de la transaction |
| + | ============================================================================================================================================================================================================== | ||
| + | Installer | ||
| - | Naviguer sur http://[yourcomputer.tld]:30886 | + | Taille totale des téléchargements : 20 M |
| + | 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:" | ||
| + | |||
| + | |||
| + | </ | ||