1.

How can we forward the port '8080 (container) -> 8080 (service) -> 8080 (ingress) -> 80 (browser)and how it can be done?

Answer»

The ingress is exposing port 80 externally for the browser to access, and CONNECTING to a service that listens on 8080. The ingress will LISTEN on port 80 by default. An "ingress controller" is a pod that receives external traffic and handles the ingress and is configured by an ingress resource For this you need to configure the ingress selector and if no 'ingress controller selector' is MENTIONED then no ingress controller will manage the ingress.

Simple ingress CONFIG will look like

host: abc.orghttp:paths:BACKEND:serviceName: abc-serviceservicePort: 8080Then the service will look likekind: ServiceapiVersion: v1metadata:name: abc-servicespec:ports:protocol: TCPport: 8080 # port to which the service listens totargetPort: 8080Additional Resources

Kubernetes Vs Openshift



Discussion

No Comment Found