Giter Site home page Giter Site logo

Comments (2)

kurokobo avatar kurokobo commented on August 24, 2024

Hi, could you please gather Events section from kubectl describe command for your automation job pod, when the issue occurred?

kubectl -n awx describe pod automation-job-3583-shdjp

Maybe you can get some events at the bottom of the output like this:

Events:
  Type    Reason     Age   From               Message
  ----    ------     ----  ----               -------
  Normal  Scheduled  37s   default-scheduler  Successfully assigned awx/automation-job-1-vc4c4 to kuro-c9s01.krkb.lab
  Normal  Pulling    37s   kubelet            Pulling image "quay.io/ansible/awx-ee:latest"
  Normal  Pulled     8s    kubelet            Successfully pulled image "quay.io/ansible/awx-ee:latest" in 29.325s (29.326s including waiting)
  Normal  Created    8s    kubelet            Created container worker
  Normal  Started    8s    kubelet            Started container worker

I suspect that your pod takes much time to pulling image from container registry. In above example, pulling image takes 29 seconds (see the Message column for the line Pulled, or calculate difference between the Age for Pulling(37s) and Pulled(8s)).
You can see which events takes much time until Created event is recorded.

If the pulling image is taking a long time, there is not much that can be done.

  • Reduce the chances to pull container image by changing pull policy to Missing for your EE for your Job Template
  • Speed up the connection to the container registry
  • Increase K3s storage capacity /var/lib/rancher to reduce the removal cached images by garbage collection by kubelet (see this official docs)
  • Store your EE images on the private container registry in the same network, or on the same K3s host and make AWX to use EE image from container registry

from awx-on-k3s.

09cicada avatar 09cicada commented on August 24, 2024

Hello Mr. Kurokobo, spot on, it was indeed the pulling of awx-ee:latest
Normal Pulling 2m7s kubelet Pulling image "quay.io/ansible/awx-ee:latest"

I am going to change the pull policy to Missing. I will also add some space to /var/lib/rancher
I really appreciate the advice and help. I will close this and thank you once again.

from awx-on-k3s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.