This is my deployed traefik snippet configuration:
spec:
containers:
- args:
- --global.checknewversion=true
- --global.sendanonymoususage=true
- --entryPoints.traefik.address=:9000
- --entryPoints.web.address=:8000
- --entryPoints.websecure.address=:8443
- --api.dashboard=true
- --ping=true
- --providers.kubernetescrd
- --log.level=WARN
image: traefik:2.1.3
As far I've been able to figure out reading documentation, traefik is able to process all Ingress
resources.
I've performed kubectl apply -f ingress.yaml
. ingress.yaml
content is:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example-web-app
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
tls:
- secretName: traefik-cert
rules:
- host:
http:
paths:
- path: /s1
backend:
serviceName: svc1
servicePort: 8080
- path: /s2
backend:
serviceName: svc2
servicePort: 8080
- path: /
backend:
serviceName: svc3
servicePort: 8080
By other side, I've tried to deploy an IngressRoute
instead of an straightforard Ingress
:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: traefik-graylog
spec:
entryPoints:
- web
routes:
- kind: Rule
match: Host(`graylog.localhost`)
services:
- name: graylog-web
port: 9000
This IngressRoute
is detected correctly, but the previously Ingress