Installation of ansible AWX tool with minikube cluster

Installation of ansible AWX tool



* Installation of Docker on Ubuntu 24.04:
This demonstration done on virtualbox with 6GB RAM and 8VCPUS

# Add Docker's official GPG key:

sudo apt-get update

sudo apt-get install ca-certificates curl

sudo install -m 0755 -d /etc/apt/keyrings

sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc


sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:

echo \

  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \

  $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \

 sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

 

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

 

sudo systemctl status docker

sudo systemctl statt docker

 

sudo usermod -aG docker $USER

exit the shell and login agin ,Verify docker 

docker run hello-world


Installation of Minikube:

curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-amd64

sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64

minikube config set memory=4096 (MB)

minikube config set cpus=2(minimum)

minikube start driver=docker --addons=ingress

 

* AWX installation:

 git clone  https://github.com/ansible/awx.git

 cd awx

sudo dnf install git make -y

 # checkout the branch

git checkout 2.19.0

 make deploy

kubectl get pods -n anisble-awx

 cp aws-dem.yml awx-ubuntu.yml

#Note: This file will be available in AWX folder 

vi awx-ubuntu.yml

apiVersion: awx.ansible.com/v1beta1

kind: AWX -n ans

metadata:

  name: awx-ubuntu

spec:

  service_type: nodeport


kubectl create -f awx-ubuntu.yml -n ansible-awx

kubectl get po -n ansible-awx

kubectl get svc -n ansible-awx

kubectl logs -f deployments/awx-operator-controller-manager -c awx-manager -n ansible-awx


# To access dashboard

minikube ip 

 

minikube service awx-ubuntu-service --url -n ansible-awx 

 

# to access from outside

kubectl portforward service/awx-ubuntu-service -n ansible-awx --address 0.0.0.0 (port which map through inside):80 &>/dev/null &

http://ip of minikube machine: (port which map through inside)

Comments

Popular posts from this blog

Digital Detox Yoga: 20-Minute Routines to Unplug Your Mind

IT automation tool ansible awx