Answer the question
In order to leave comments, you need to log in
How to set up an ingress or node so that the express webserver does not know which way it is being proxied?
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example-ingress
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /mywebapi
backend:
serviceName: mywebapi-service
servicePort: 80
app.get('/', (req, res) => res.send('ok'));
app.get('/mywebapi', (req, res) => res.send('ok'));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question