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
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
1
Answer:
b) kubectl run my_image --image=my_image --port=5701
Explanation:
Similar questions
Math,
6 months ago
English,
6 months ago
Math,
11 months ago
History,
11 months ago
Social Sciences,
1 year ago