What the difference between below two commands 1) kubectl run pod-name --image=i . . .

Aditya Bhat:
What the difference between below two commands

  1. kubectl run pod-name --image=image-name --port=port no --expose
  2. kubectl run pod-name --image=image-name --port=port no

Mohamed Ayman:
the first command is used to create a pod & a service. the 2nd one just to create a pod