Replace the single-rule Ingress with one that splits by path:
sh
kubectl apply -n abyss-1iebr92 -f - <<EOF
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: market
spec:
ingressClassName: traefik
rules:
- host: market.example
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: market-web
port:
number: 80
- path: /monsters
pathType: Prefix
backend:
service:
name: market-api
port:
number: 8080
- path: /healthz
pathType: Exact
backend:
service:
name: market-api
port:
number: 8080
EOF
kubectl describe ingress market -n abyss-1iebr92Then probe the edges:
sh
curl -s -H "Host: market.example" http://10.0.0.10/
curl -s -H "Host: market.example" http://10.0.0.10/monsters
curl -s -H "Host: market.example" http://10.0.0.10/monsters/42
curl -s -H "Host: market.example" http://10.0.0.10/healthz
curl -s -H "Host: market.example" http://10.0.0.10/healthz/deep