Install Ansible AWX in Ubuntu 22.04 using Minikube and enable access from external|step by step Demo

Поделиться
HTML-код
  • Опубликовано: 19 авг 2024
  • #ansibleinstallation #minikube #awx
    Playlist: Ansible AWX Network Automation
    • Ansible Tower/AWX CICD...
    Network Automation Blogs:
    networkevoluti...
    Commands:
    Step1: Install Docker
    #############################################################
    docs.docker.co...
    docs.docker.co...
    Step2: Install Minikube & start
    #############################################################
    minikube.sigs....
    minikube start --cpus=4 --memory=6g --addons=ingress
    set the alias:- alias kubectl="minikube kubectl --"
    Step3: Install AWX Operator
    #############################################################
    -------------------------------------------------------------
    file: kustomization.yaml
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    apiVersion: kustomize.config.k8s.io/v1beta1
    kind: Kustomization
    resources:
    - github.com/ansible/awx-operator/config/default?ref=2.0.1
    images:
    - name: quay.io/ansible/awx-operator
    newTag: 2.1.0
    namespace: awx
    -------------------------------------------------------------
    Command: kubectl apply -k .
    -------------------------------------------------------------
    set the default namespace:- kubectl config set-context --current --namespace=awx
    Step4: Install awx
    #############################################################
    update kustomization.yaml resources
    file: awx-server.yaml
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ---
    apiVersion: awx.ansible.com/v1beta1
    kind: AWX
    metadata:
    name: awx-server
    spec:
    service_type: nodeport
    -------------------------------------------------------------
    Command: kubectl apply -k .
    -------------------------------------------------------------
    check installation logs: kubectl logs -f deployments/awx-operator-controller-manager -c awx-manager -n awx
    Step5: Enable external access
    ############################################################
    kubectl port-forward service/awx-server-service --address 0.0.0.0 30080:80
    In this video we will learn how to install amsible awx or ansible tower in minikube kubernetes cluster for learning purposes
    how to setup ansible awx in docker container
    how to setup ansible awx lab for testing
    ansible awx minikube setup
    ansible tower minikube kubernetes cluster setup tutorial
    how to completely setup ansible awx in minikube docker
    minikube ip 192.168.49.2 30k port awx expose to external network
    minikube use docker as the driver and start minikube container
    docker stats
    docker ps -a
    kubectl get pods command docker example
    kubectl get nodes command in minikube example
    run minikube in docker container
    kubectl get services or kubectl get svc
    how to check ansible awx service in minikube kubernetes
    awx-server-service in kubernetes
    cluste ip, node ip, nodeport in kubernetes
    kubernetes dashboard and how run it in minikube
    minikube is a lightwight singlenode kubernetes cluster
    docker info command for getting machine details
    run kubernetes cluster in docker container
    kuztomization.yml in kubernetes
    kubectl apply -k .
    how to create kuztomization
    how to install awx-operator using kuztomization
    how to use ingress service
    how to install docker container in ubuntu 22.04
    run ansible awx minikube in ubuntu 22.04
    docker how to give docker command permission for non root user
    how to run docker command without sudo
    docker rm containerid
    docker rmi example for ansible awx installation
    how to install minikube in ubuntu 22.04 docker driver
    install minikube binary for ansible tower or ansible awx installation
    how to start minikube for ansible installation
    minikube addon ingress
    minikube kubectl -- get nodes
    minikube kubectl -- get pods
    alias kubectl="minikube kubectl --"
    kubectl get pods -A
    install awx in docker
    install awx in kubernetes
    install awx in ubuntu
    install awx in minikube
    install awx ansible
    ansible awx install in kubernetes
    install ansible awx ubuntu 22.04
    ansible install awx
    ansible awx install ubuntu
    how to install ansible awx on ubuntu 22.04
    install awx bare metal
    awx installation ubuntu
    install awx cli
    install awx cli ubuntu
    ansible awx-operator kuztomization example
    awx operator controller created
    minikube kubernetes deployment for awx installation example
    install awx-server in kubernetes
    deployment name, metadata, kind:AWX service type: nodeport
    check the awx installation logs in kubernetes
    kubernetes expose services to external using kubectl port-forward
    expose minikube service to external lan network
    docker expose service to external example
    ansible automation platform tutorial
    ansible awx installation step by step
    network automation using ansiblw awx tower ansible automation platform
    network evolution
    ansible awx installation tutorial for network engineers
    ansible tutorial
    operator framework kubernetes
    tags:ansible awx installation, awx setup in minikube

Комментарии • 37

  • @NetworkEvolution
    @NetworkEvolution  5 месяцев назад

    𝗧𝗼 𝗔𝗰𝗰𝗲𝘀𝘀 𝘁𝗵𝗲 𝗙𝘂𝗹𝗹 𝗖𝗼𝗻𝘁𝗲𝗻𝘁 𝗘𝗻𝗿𝗼𝗹𝗹 𝗶𝗻 𝗼𝘂𝗿 𝗶𝗻-𝗱𝗲𝗽𝘁𝗵 𝗨𝗱𝗲𝗺𝘆 𝗖𝗼𝘂𝗿𝘀𝗲 (Mastering Ansible Automation):
    www.udemy.com/course/ansible-course-for-network-engineers/?referralCode=F48EC2196525D2169E07

  • @smupp0410
    @smupp0410 Год назад +3

    Sir! You're a blessing. Successfully initiated awx platform behind corporate vpn and configured external access over lan. Had a few hiccups as expected, but this guide was extremely helpful for my POC.

  • @tulasib5402
    @tulasib5402 11 месяцев назад

    vow! what a peaceful and informative demonstration. Thankyou! Can you please extend this and explain more on AWX. Newbie here!

  • @paul-xr4kj
    @paul-xr4kj 8 месяцев назад

    Excellent video, thanks for posting - is very helpful for our POC also

    • @NetworkEvolution
      @NetworkEvolution  8 месяцев назад

      Thanks for the comment Paul. Glad it helped !

  • @user-gg2nc7jb3o
    @user-gg2nc7jb3o Год назад +2

    The last step is not clear at all, how do you port forwarded?

  • @TastyAnimation
    @TastyAnimation Год назад

    You are amazing! Thank you so much :)

  • @warangal1984
    @warangal1984 7 месяцев назад +1

    For me running kubectl command even after giving alias command was not working but after providing "sudo snap install kubectl --classic" command the kubectl started working

  • @thehiphoparenaofficial
    @thehiphoparenaofficial Год назад

    Amazing content from this channel, keep it coming! Any plans on covering execution environments in AWX ? Seems like that is the most tricky part with using the newer AWX platform. I'm running into tons of issues using EE.

    • @NetworkEvolution
      @NetworkEvolution  Год назад

      Thanks for the comment.
      Soon I will be creating a video on execution environment.
      For testing in nonprod, you can take a look at this execution environment
      where I have added all the community collections + pyats for network automation usecases
      quay.io/repository/networkevolution/network_automation_ee

    • @thehiphoparenaofficial
      @thehiphoparenaofficial Год назад

      @@NetworkEvolution Nice perfect! It was a pain creating my own EE, but I ended up getting it to work. I'll keep an eye out for yours. Any thoughts on making content with nautobot automation platform ? It's popular in the network automation space.

    • @NetworkEvolution
      @NetworkEvolution  Год назад

      @@thehiphoparenaofficial Thanks for the valuable suggestion. Let me take a look at nautobot.

  • @valter7331
    @valter7331 9 месяцев назад

    Thank you mate

  • @xtensionxward3659
    @xtensionxward3659 Год назад

    why is there no awx-manage in minikube pods after this ?

  • @kuldeepsinghal5041
    @kuldeepsinghal5041 4 месяца назад

    How to update Ansible and how to use ansible community general package after this method...? As when i run ansible galaxy install , it was like unsupported command

    • @NetworkEvolution
      @NetworkEvolution  4 месяца назад

      You can create a new execution environment using podman and install all the packages in it, then map that EE in awx template

  • @muralireddy5493
    @muralireddy5493 Месяц назад

    i have tried to install awx in my ubuntu ec2 i have faced an issue " Error from server (BadRequest): container "postgres" in pod "awx-server-postgres-13-0" is waiting to start: trying and failing to pull image
    " please help this pod going to imagepullback state.

  • @valkiriaaquatica
    @valkiriaaquatica 9 месяцев назад

    THANKS BRO

  • @vaibhavasundkar5527
    @vaibhavasundkar5527 3 месяца назад

    each and every step is working. but only the last step which is when i am hitting private ip with node port in browser its not working. its saying connection timed out. i also allowed all inbound rules in security group as well. still not working. should i use the latest tag of awx for this issue?

    • @NetworkEvolution
      @NetworkEvolution  3 месяца назад

      Are you getting the message forwarding from 30080 message
      same as 30:14 and have you kept that terminal running? Do you have any firewall service running in ubuntu. By default there is no firewall enabled

    • @NetworkEvolution
      @NetworkEvolution  3 месяца назад

      without portforward, are you able to access awx from same machine?

  • @user-ne4uy1bc2x
    @user-ne4uy1bc2x 7 месяцев назад

    I am getting errors while it's creating pods:
    awx-demo-postgres-13-0 1/1 Running 0 12m
    awx-demo-task-647c7599b-72zbl 0/4 Init:ImagePullBackOff 0 7m55s
    awx-demo-web-7fbcf6649d-wq8mx 1/3 ImagePullBackOff 0 5m52s
    awx-operator-controller-manager-759c4cbc74-p2b86 2/2 Running 0 9m35s
    Any idea what could be wrong?

    • @happyuk06
      @happyuk06 2 месяца назад

      Possibly your VM/machine not resourced enough? Needs more memory (RAM)?

  • @normanmusictracks1978
    @normanmusictracks1978 Год назад

    Any method to backup it? especially the inventory / user?

    • @NetworkEvolution
      @NetworkEvolution  Год назад

      Can you take a look at it? I am yet to try backup of awx.
      www.unixarena.com/2019/03/backup-restore-ansible-awx-tower-cli.html/

  • @yanettearenas5485
    @yanettearenas5485 Год назад

    hI, iam getting errors during creation of pods, init crassh error...0/4

    • @NetworkEvolution
      @NetworkEvolution  Год назад

      Have you tried creating any other pods (Eg: Ubuntu) in the same cluster to make sure kube is working fine?

  • @MillicentHicks-id5vx
    @MillicentHicks-id5vx 3 месяца назад

    Hello blogger I successfully installed according to your tutorial to log in to awx at the end, but I entered admin and the password on kubectl and still couldn't log in

    • @NetworkEvolution
      @NetworkEvolution  3 месяца назад +1

      Can you share the time in the video where you are getting error ?
      I recently tried with latest version and it worked.

    • @MillicentHicks-id5vx
      @MillicentHicks-id5vx 3 месяца назад

      Ok. I am using ubantu 24.04 and I have not touched minikube before, so how can I give some information? What I have encountered is that I logged in to minikube dashboard and entered my password, but failed to log in to awx. And I come from China. Can I add my contact information to you? It may help me better answer the question if you are willing@@NetworkEvolution

    • @MillicentHicks-id5vx
      @MillicentHicks-id5vx 3 месяца назад

      Ok. I am using ubantu 24.04 and I have not touched minikube before, so how can I give some information? What I have encountered is that I logged in to minikube dashboard and entered my password, but failed to log in to awx. And I come from China. Can I add my contact information to you? It may help me better answer the question if you are willing@@NetworkEvolution

    • @MillicentHicks-id5vx
      @MillicentHicks-id5vx 3 месяца назад

      Ok. I am using ubantu 24.04 and I have not touched minikube before, so how can I give some information? What I have encountered is that I logged in to minikube dashboard and entered my password, but failed to log in to awx. And I come from China. Can I add my contact information to you? It may help me better answer the question if you are willing@@NetworkEvolution

    • @MillicentHicks-id5vx
      @MillicentHicks-id5vx 3 месяца назад

      [pid: 21|app: 0|req: 11/26] 10.244.0.1 () {60 vars in 1037 bytes} [Sun May 12 15:58:10 2024] POST /api/login/ => generated 1010 bytes in 4 msecs (HTTP/1.0 403) 7 headers in 273 bytes (1 switches on core 0)
      10.244.0.1 - - [12/May/2024:15:58:10 +0000] "POST /api/login/ HTTP/1.0" 403 1010 "52.179.21.188:9090/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0" "27.223.82.242"
      hi, I observed the log of the web pod in kubectl dashboard and found that after I entered the password, 403 will be displayed. I am a cloud server of azure. Is there any restriction@@NetworkEvolution