ANKIT RAWAT
ANKIT RAWAT

Reputation: 15

What is -it in this command?

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?

Upvotes: 0

Views: 58

Answers (1)

Holger Just
Holger Just

Reputation: 55768

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)

Upvotes: 1

Related Questions