CKAD-exercises
CKAD-exercises copied to clipboard
Use --generator=run-pod/v1 explicitly instead of --restart=Never
Use --generator=run-pod/v1 explicitly instead of --restart=Never (not specified in the task)
BTW --restart=Never is still relevant, but i agree its better to use generator since its the new way.
Is the --restart=Never
deprecated? If not, can we include it in a comment? I think it's easier for people to remember for the exam, but definitely agree that generator
is the correct way.
we should retain --restart=Never
According to https://kubernetes.io/docs/reference/kubectl/conventions it's still good to use --restart=Never
to create pods:
Generators other than run-pod/v1 are deprecated
I suppose we can add it as a comment, in any case.
Generated shouldn't be use anyways, this was deprecated and will be removed in 1.20 https://kubernetes.io/docs/setup/release/notes/#changelog-since-v1-20-0. This topic also kind of touches with my pull request #167, which depending on the top of pod image we need to set the restart policy or keep the default.
@stankevichevg Can you rebase your branch with the latest master and update the PR with reviews if you're still at it?