Default Pod-to-Pod Communication

In Kubernetes, the pods by default can communicate with other pods, regardless of which host they land on. Every pod gets its own IP address so you do not need to explicitly create links between pods. This is demonstrated by the management-ui.

kind: Service
  name: management-ui
  namespace: management-ui
  type: LoadBalancer
  - port: 80
    targetPort: 9001

To open the Management UI, retrieve the DNS name of the Management UI using:

kubectl get svc -o wide -n management-ui

Copy the EXTERNAL-IP from the output, and paste into a browser. The EXTERNAL-IP column contains a value that ends with “” - the full value is the DNS address.

NAME            TYPE           CLUSTER-IP     EXTERNAL-IP                                                              PORT(S)        AGE       SELECTOR
management-ui   LoadBalancer   80:31919/TCP   9s        role=management-ui

The UI here shows the default behavior, of all services being able to reach each other.

full access