![helm of raedwald solution explained helm of raedwald solution explained](https://stronghold-terrain.de/wp-content/uploads/2018/03/WBWUF01-1.jpg)
The Webserver (or the static content) is served by httpd at port 80 while Appserver (or the dynamic content) is served by tomcat at port 8080. response to requests, etc.) hosted by tomcat. I will explain with an example:Ĭonsider a Web-Application with its static content (front-page, images etc) hosted by httpd and the dynamic content (eg. However, the explanation of "Port" might be a little unclear at first reading. This is node port(port exposed on the host machine).įrom the above example, you can hit the service from outside the cluster(Postman or any rest-client) by host_ip:nodePort So that the traffic is redirected to a port of the container. So to hit the service from outside the cluster someone needs to expose the port on the host machine on which kubernetes is running But this myservice:8089 is internal to the kubernetes cluster and can be used when one application wants to communicate with another application. Similarly, if you hit my-service:8443 then it is redirected to 8085 of the container(targetPort). If you hit the my-service:8089 the traffic is routed to 8080 of the container(targetPort). Service needs to have a mapping so that it can hit the specific port of the container. So if you hit the service without port it doesn't know to which port of the container it should redirect the request.
![helm of raedwald solution explained helm of raedwald solution explained](http://www.bricktothepast.com/uploads/3/8/6/6/38665903/a-a-4-copy_orig.jpg)
Port: Some times your application inside container serves different services on a different port.Įxample: The actual application can run 8080 and health checks for this application can run on 8089 port of the container. TargetPort: This is the actual port on which your application is running inside the container.
![helm of raedwald solution explained helm of raedwald solution explained](http://www.bricktothepast.com/uploads/3/8/6/6/38665903/rt-1-copy_orig.jpg)
Service: This directs the traffic to a pod.