I'm deployed my service:
$ kubectl get service -o wide -l app=swarm-manager,cluster=dind
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
swarm-manager ClusterIP 10.43.202.23 <none> 2376/TCP 16m app=swarm-manager,cluster=dind
So, pods behind service are:
$ kubectl get pods -o wide -l app=swarm-manager,cluster=dind
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
swarm-manager-6895d65ff7-264k9 1/1 Running 0 17m 10.42.0.99 k3d-k3s-traefik-v2-worker-0 <none> <none>
Everything seems running correctly.
Now, I'm trying to configure a route in order to get access to my service. Since I need to use tls passthrough, I've created an IngressRouteTCP
:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: ingressroutetcp-dind-master
spec:
entryPoints:
- websecure
routes:
- match: HostSNI(`master.dind.localhost`)
services:
- name: swarm-manager
port: 2376
passthrough: true
I've tried to get access to my service using curl, but I'm getting an 404:
$ curl master.dind.localhost:443 --cacert ./client/ca.pem --cert ./client/cert.pem --key ./client/key.pem
HTTP/1.1 404 Not Found
I've took a look on dashboard, and I've realized this error:
Any ideas?