> Kubernetes Networking Concept in Detail:
Theory:
Kubernetes Networking addresses four concerns:
- containers within a pod use networking to communicate via loopback
- cluster networking provides communication between different pods
- the service resources lets you expose an application running in pods to be reachable from outside your cluster
- you can also use services to publish services only for consumption inside your cluster. container to container communication on same pod happen through localhost within the containers.
.png)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- How Two different Containers communicate with each-other within the Same Pod:
.png)
LAB:
> Create a new AWS Instance named “Minikube” on T2-Medium & access it via PUTTY as we do, then do the rest lab: