What is the use of specifying containerPort in the kubernetes POD definition ? Does it provide any extra benefit if we specify the container port in the yaml definition file ?
I observed that i can still access the port inside the container even if i omit it in POD yaml definition file.