Comments (5)
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.
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.
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.
@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.
@shubhamrajvanshi Can you expand this? Why does it come in handy when working with busybox or alpine?
from ckad-exercises.
Related Issues (20)
- Using args HOT 1
- CronJob param activeDeadlineSeconds vs startingDeadlineSeconds HOT 2
- [HELP] Network policy not working [Services and Networking] HOT 6
- Upcoming Program Changes Coming September 28, 2021 HOT 3
- all resources must be specified before annotation changes
- Misleading solution in 'hitting IP with wget'? HOT 2
- Solution for configmap --from-file HOT 1
- CKD new question HOT 8
- [HELP] Service account related question -- CKAD HOT 4
- [Help] Canary Deployment question HOT 7
- [Help] OCI-compliant container HOT 1
- duplicate resources block in d.configuration.md>Requests and limits
- Jobs HOT 1
- Not clear suggestion in deployment canary exercise HOT 1
- Wrong solution in 4th exercise of e.observability.md
- Helm command has mistakes HOT 3
- Logging - invalid command HOT 1
- wget: bad address 'neverssl.com' [Multi-container Pods ] HOT 1
- Thanks + Typo HOT 2
- CKA related exercices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckad-exercises.