Files
NovalRedot/k8s/ingress.yaml
ROOG 1c9b482df3
All checks were successful
Deploy Noval to K3s / deploy (push) Successful in 28s
chore(k8s): use spec.ingressClassName for traefik ingress
2026-03-22 17:43:22 +08:00

29 lines
719 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: noval-ingress
namespace: noval-roog-code
labels:
app: noval
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
ingressClassName: traefik
rules:
- host: writing-reddot.roog-code.cn
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: noval-service
port:
number: 80
tls:
- hosts:
- writing-reddot.roog-code.cn
secretName: writing-reddot-roog-code-tls