Giter VIP home page Giter VIP logo

Comments (5)

netserf avatar netserf commented on May 18, 2024 8

If --restart=Never is only relevant to busybox and alpine pods, then shouldn't this option be removed in examples using other images such as nginx? This should help clarify usage.

from ckad-exercises.

nicoclau avatar nicoclau commented on May 18, 2024 4

It was necessary for k8s lower than 1.18, not anymore. kubectl run only creates pods.
For deployment do kubectl create deployment.

from ckad-exercises.

shubhamrajvanshi avatar shubhamrajvanshi commented on May 18, 2024 3

Well while this is true but having restart=Never comes in handy when you are working with pods that have images like busybox, alpine etc.

from ckad-exercises.

janekmichalik avatar janekmichalik commented on May 18, 2024 2

@srikanthsrs because mentioned images without i.e. sleep infinity command will exit with 0 exit code (container exits) and then will be restarted. Nginx image has infinity process running inside so it wont exit - wont be restarted (container is running)

from ckad-exercises.

srikanthsrs avatar srikanthsrs commented on May 18, 2024

@shubhamrajvanshi Can you expand this? Why does it come in handy when working with busybox or alpine?

from ckad-exercises.

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.