I created postgres deployment with containerPort as 55432 and same for service. My understanding was when pod is deployed I could access postgres at 55432 but somehow it is not working. I could access postgres on 5432 instead. What am I missing here?
Also does all the pods that gets deployed with k8s have their own set of ports?