Does Traefik IngressRoute
equivalent to Nginx upstream?
I am trying to migrate a service from nginx to traefik 2 on kubernetes, here is a basic example
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: my-site-com
spec:
entryPoints:
- websecure
routes:
- match: "Host(`mysite.com`) && Path(`/upstream-test`)"
kind: Rule
services:
- name: myservice
port: 8080
scheme: http
tls:
secretName: my-certificate-staging
And here is the example using nginx upstream configuration:
upstream my-upstream {
server 127.0.0.1:8080;
}
server {
listen 443 ssl http2;
server_name myste.com;
...
# SSL config
...
location /upstream-test {
proxy_pass http://my-upstream;
}
}
But I am having issues and traefik route do not reach the upstream.
Any ideas?