Kubernetes configuration to link containers

docker, kubernetes

Solution

The containers in same pod shares the localhost, so you need not link containers, just use localhost:containerPort.

Problem

I am trying to see if there are any example to create a Kubernetes POD which starts 2-3 containers and these containers are linked with each other but couldn't find any. Does anybody tried linking containers using Kubernetes config.

Original source