Cluster DNS was answering the hostname with the SSH Service, so cert-manager never reached the ACME solver on port 80.
36 lines
929 B
YAML
36 lines
929 B
YAML
# Traefik TCP SSH + TrinityIngress HTTP health on node4 (box2.trinitysan.by).
|
|
|
|
---
|
|
# Traefik TCP :2222 → OpenSSH in the pod (plain SSH; HostSNI catch-all).
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRouteTCP
|
|
metadata:
|
|
name: cursor-devbox-ssh
|
|
namespace: cursor-devbox
|
|
spec:
|
|
entryPoints:
|
|
- ssh
|
|
routes:
|
|
- match: HostSNI(`*`)
|
|
services:
|
|
- name: cursor-devbox
|
|
port: 22
|
|
|
|
---
|
|
# DNS A record + HTTPS front for the tiny HTTP health page; SSH uses Traefik TCP :2222.
|
|
apiVersion: ingress.trinitysan.by/v1
|
|
kind: TrinityIngress
|
|
metadata:
|
|
name: cursor-devbox
|
|
namespace: cursor-devbox
|
|
annotations:
|
|
# cert-manager HTTP-01 self-check must reach Traefik :80, not the SSH Service.
|
|
ingress.trinitysan.by/internal-route-to-traefik: "true"
|
|
spec:
|
|
hostname: box2.trinitysan.by
|
|
serviceRef:
|
|
namespace: cursor-devbox
|
|
name: cursor-devbox
|
|
port: 8080
|
|
certificateReclaimPolicy: Retain
|