Computer Science, asked by mcesar2007, 11 months ago

Which of the following command is used to start a single instance of my_image and let the container expose port 5701 ?

a) tl start my_image --image=my_image --port=5701

b) kubectl run my_image --image=my_image --port=5701

c) kubectl init my_image --image=my_image --port=5701

d) kubectl run my_image port=5701

Answers

Answered by qwtiger
3

Answer:

kubectl run is used to run a particular image on cluster.

It created or runs an image, generally replicated.

--port="" The port that this container exposes. If --expose is true, this is also the port used by the service that is created.

Therefore the answer is option b) kubectl run my_image --image=my_image --port=5701

Answered by venkateshtammineni
1

Answer:

b) kubectl run my_image --image=my_image --port=5701

Explanation:

Similar questions