Routing
We have this scenario: Application receives request via /app
, but we want the service to route to /<application-service-name>/app
. How do we do this without changing the application in Kubernetes?
We can use a NGINX load balancer as a proxy.
Create an NGINX K8s service (image:
nginxinc/nginx-unprivileged:1.16-alpine
) - separate from K8s service of the applicationMount the following config map to the container
/etc/nginx/conf.d/default.conf
:
Last updated