Files
hugo-blog/deploy/hugo-ingress.yaml
root 9060b97178
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 44s
ci: make Hugo deployment traceable
2026-06-02 05:47:54 +08:00

38 lines
776 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hugo-blog
namespace: hugo
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: traefik
rules:
- host: hugo.test.luochen570.cn
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: hugo-blog
port:
number: 80
- host: hugo.luochen570.cn
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: hugo-blog
port:
number: 80
tls:
- hosts:
- hugo.test.luochen570.cn
secretName: hugo-test-luochen570-cn-tls
- hosts:
- hugo.luochen570.cn
secretName: hugo-luochen570-cn-tls