The ingresses referenced a Cloudflare OriginIssuer 'prod-issuer' whose CRD and controller are not installed in the cluster, so cert-manager could not issue certs and Traefik served a default cert (invalid SSL). Switch to the existing letsencrypt-prod ClusterIssuer with specific hostnames + per-app secrets, matching the working ingresses (http-01 cannot issue wildcards).
30 lines
754 B
YAML
30 lines
754 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: myorg-ingress
|
|
namespace: myorg-assistant
|
|
annotations:
|
|
# Use Traefik as the ingress controller (default in k3s)
|
|
kubernetes.io/ingress.class: "traefik"
|
|
# Enable SSL redirect
|
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
|
# Optional: enable compression
|
|
traefik.ingress.kubernetes.io/compress: "true"
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- myorg.rogi.casa
|
|
secretName: myorg-tls
|
|
rules:
|
|
- host: myorg.rogi.casa
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: myorg-assistant-service
|
|
port:
|
|
number: 8000
|