meta données pour cette page
  •  

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
linux:install_awx [22/02/2026 18:40] mdllinux:install_awx [01/03/2026 16:32] (Version actuelle) mdl
Ligne 1: Ligne 1:
-====== Installation AWX 18+ sur  Rcoky Linux 9 ======+====== Installation AWX 18+ sur  Rocky Linux 9 ======
  
 == Environnement == == Environnement ==
   * **HOST:** VM Rocky Linux 9   * **HOST:** VM Rocky Linux 9
-  * **FS:** OS 20GB+  * **FS:**  
 +    * OS20GB 
 +    * 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
 </code> </code>
 +
 +
 +  * FS Dedié AWX
 +<code BASH>
 +[root@awx ~]# pvcreate /dev/xvdb
 +  Physical volume "/dev/xvdb" successfully created.
 +
 +[root@awx ~]# vgcreate vg_awx  /dev/xvdb 
 +  Volume group "vg_awx" successfully created
 +  
 +[root@awx ~]# lvcreate -n lv_awx  -l+100%FREE vg_awx
 +  Logical volume "lv_awx" created.
 +
 +[root@awx ~]# mkfs.xfs /dev/mapper/vg_awx-lv_awx 
 +meta-data=/dev/mapper/vg_awx-lv_awx isize=512    agcount=4, agsize=1638144 blks
 +                               sectsz=512   attr=2, projid32bit=1
 +                               crc=1        finobt=1, sparse=1, rmapbt=0
 +                               reflink=1    bigtime=1 inobtcount=1 nrext64=0
 +data                           bsize=4096   blocks=6552576, imaxpct=25
 +                               sunit=0      swidth=0 blks
 +naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
 +log      =internal log           bsize=4096   blocks=16384, version=2
 +                               sectsz=512   sunit=0 blks, lazy-count=1
 +realtime =none                   extsz=4096   blocks=0, rtextents=0
 +
 +
 +[root@awx ~]# mkdir -p /awx-data
 +
 +[root@awx ~]# cat /etc/fstab 
 +    #
 +    # /etc/fstab
 +    # Created by anaconda on Sun Feb 22 16:51:04 2026
 +    #
 +    # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
 +    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
 +    #
 +    # After editing this file, run 'systemctl daemon-reload' to update systemd
 +    # units generated from this file.
 +    #
 +    /dev/mapper/rl-root     /                       xfs     defaults        0 0
 +    UUID=05cdbb8e-0540-423e-bd38-bdc62f632cd5 /boot                   xfs     defaults        0 0
 +    UUID=3F3E-4DE5          /boot/efi               vfat    umask=0077,shortname=winnt 0 2
 +    /dev/mapper/rl-swap     none                    swap    defaults        0 0
 +    #
 +    ### Kubernetes storage
 +    /dev/mapper/vg_awx-lv_awx      /awx-data              xfs    defaults        0 0
 +
 +
 +
 +
 +[root@awx ~]# mount -a
 +mount: (hint) your fstab has been modified, but systemd still uses
 +       the old version; use 'systemctl daemon-reload' to reload.
 +[root@awx ~]# 
 +[root@awx ~]# 
 +[root@awx ~]# systemctl daemon-reload
 +
 + 
 +</code>
 +
  
   * 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 k3d-cluster+[root@awx ~]# k3d cluster create cluster1
 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] Pulling image 'ghcr.io/k3d-io/k3d-tools:5.8.3'  +INFO[0000] Starting node 'k3d-cluster1-tools'            
-INFO[0001] Creating node 'k3d-k3d-cluster-server-0     +INFO[0001] Creating node 'k3d-cluster1-server-0'         
-INFO[0002] Pulling image 'docker.io/rancher/k3s:v1.31.5-k3s1'  +INFO[0001] Creating LoadBalancer 'k3d-cluster1-serverlb'  
-INFO[0002] Starting node 'k3d-k3d-cluster-tools        +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 'ghcr.io/k3d-io/k3d-proxy:5.8.3'  +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://0.0.0.0:44777
 +CoreDNS is running at https://0.0.0.0:44777/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
 +Metrics-server is running at https://0.0.0.0:44777/api/v1/namespaces/kube-system/services/https:metrics-server:https/proxy
 +
 +To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
 + 
 [root@awx ~]# kubectl get nodes [root@awx ~]# kubectl get nodes
-NAME                       STATUS   ROLES                  AGE   VERSION +NAME                    STATUS   ROLES                  AGE   VERSION 
-k3d-k3d-cluster-server-0   Ready    control-plane,master   14s   v1.31.5+k3s1+k3d-cluster1-server-0   Ready    control-plane,master   54s   v1.31.5+k3s1 
 </code> </code>
  
 +== 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.
 +==============================================================================================================================================================================================================
 + Paquet                                         Architecture                                     Version                                                 Dépôt                                          Taille
 +==============================================================================================================================================================================================================
 +Installation:
 + helm                                           x86_64                                           4.1.1-1.el9                                             epel                                            20 M
 +
 +Résumé de la transaction
 +==============================================================================================================================================================================================================
 +Installer  1 Paquet
 +
 +Taille totale des téléchargements : 20 M
 +Taille des paquets installés : 85 M
 +Voulez-vous continuer ? [o/N] : o
 +Téléchargement des paquets :
 +helm-4.1.1-1.el9.x86_64.rpm                                                                                                                                                    42 MB/s |  20 MB     00:00    
 +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 +Total                                                                                                                                                                          15 MB/s |  20 MB     00:01     
 +Extra Packages for Enterprise Linux 9 - x86_64                                                                                                                                750 kB/s | 1.6 kB     00:00    
 +Import de la clef GPG 0x3228467C :
 +Utilisateur : « Fedora (epel9) <epel@fedoraproject.org> »
 +Empreinte : FF8A D134 4597 106E CE81 3B91 8A38 72BF 3228 467C
 +Provenance : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
 +Voulez-vous continuer ? [o/N] : o
 +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           :                                                                                                                                                                                 1/
 +  Installation          : helm-4.1.1-1.el9.x86_64                                                                                                                                                         1/
 +  Exécution du scriptlet: helm-4.1.1-1.el9.x86_64                                                                                                                                                         1/
 +  Vérification de       : helm-4.1.1-1.el9.x86_64                                                                                                                                                         1/
 +
 +Installé:
 +  helm-4.1.1-1.el9.x86_64                                                                                                                                                                                     
 +
 +Terminé !
 +
 +
 +[root@awx ~]# helm version
 +version.BuildInfo{Version:"v4.1.1", GitCommit:"5caf0044d4ef3d62a955440272999e139aafbbed", GitTreeState:"clean", GoVersion:"go1.25.5 (Red Hat 1.25.5-2.el9_7)", KubeClientVersion:"v1.35"}
 + 
 +
 +</code>