As far as i know, in docker you have to describe the ports that will be used on container while creating it, and you cannot add any other ports afterwards.
But as i see, in kubernetes you can "expose" the ports after the creation of the pods.
So while docker is not allowing it, how come kubernetes can do that ?
Thanks