Files
cursor-devbox/deploy/node4-k3s/030-ingress.yaml
T

36 lines
929 B
YAML
Raw Normal View History

# 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