Hello,
in the past I used traefik in a docker setup. There I could configure in each docker-compose file of my applications.
Now I'm setting up a kubernetes cluster with traefik using the gateway api (instead of ingress). The lets encrypt certificates are handled by cert-manager.
Everything is fine in my setup at the moment.
But I have a small problem.
Requests to my applications http://.mydomain.de are not redirected to https://.mydomain.de which is a little bit odd.
I want not to allow http connections to my applications.
Can somebody help me to fix this issue?
Following you see my current values.yaml:
deployment:
replicas: 2
service:
externalIPs:
- "my-external-ip"
# Some default logging to see what's happening in pods
logs:
general:
level: DEBUG
access:
enabled: true
providers:
# Enable the GatewayAPI provider
kubernetesGateway:
enabled: true
# needed because of the tcp routing for git ssh
experimentalChannel: true
ports:
git-ssh:
port: 2222 # Traefik internal port
exposedPort: 22 # External port exposed on LoadBalancer
protocol: TCP
expose:
default: true
gateway:
enabled: true
namespacePolicy: All
listeners:
websecure:
port: 8443
protocol: HTTPS
mode: Terminate
certificateRefs:
- kind: Secret
name: cert-darkember-multi
git-ssh:
port: 2222
protocol: TCP
entryPoints:
git-ssh:
address: ":2222"
I already tryed some changes at the entryPoint entry. But I definitly did it wrong. So I deleted them and wanted to ask here.
Maybe you can link some helpful documentation or you can help me directly.
Thank you!