I see this command to temporarily run a pod
k run -it pod1 --image=cosmintitei/bash-curl --restart=Never --rm
What does -it mean here ?
I don't know about the -it being used here. Why is it being used? What else can it be used for?
CodePudding user response:
The -it a a short form of -i -t which in turn is a short form of --stdin --tty.
As such, this instructs kubernetes to
- pass its STDIN to the started process
- and to present STDIN as a TTY (i.e. a interactive terminal)
