I'm having trouble understanding why I'm getting 404 to my backend helloworld server with the following configuration:
apiVersion: v1
kind: Service
metadata:
name: traefik
namespace: $TRAEFIK_NAMESPACE
spec:
externalTrafficPolicy: Local
ports:
- name: https
port: 8443
protocol: TCP
targetPort: 8443
nodePort: 32766
selector:
app: traefik
type: NodePort
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: traefik
name: traefik-ingress-controller
namespace: $TRAEFIK_NAMESPACE
spec:
replicas: 6
selector:
matchLabels:
app: traefik
name: traefik-ingress-controller
template:
metadata:
labels:
app: traefik
name: traefik-ingress-controller
spec:
containers:
- args:
- --entrypoints.https=true
- --entrypoints.https.address=:8443
- --log=true
- --log.level=error
- --providers.kubernetescrd=true
- --providers.kubernetescrd.ingressclass=shared-ingress
image: traefik:v2.1.2
imagePullPolicy: IfNotPresent
name: traefik
ports:
- containerPort: 8443
name: https
protocol: TCP
serviceAccount: traefik-ingress-controller
serviceAccountName: traefik-ingress-controller
terminationGracePeriodSeconds: 60
strategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: helloworld-ingressroute
namespace: hello
annotations:
kubernetes.io/ingress.class: shared-ingress
spec:
entryPoints:
- https
routes:
- match: Host(`helloworld.mydomain.com`)
kind: Rule
services:
- name: helloworld
port: 8081
What I want is traefik to use TLS on the front (self-signed cert is ok for now) and use non-TLS to the back. The helloworld service works as it is supposed to. What am I missing?