qy-html-project/k8s/ingress.yaml
zyc 1ab9e67f21
Some checks failed
Deploy Static Sites / deploy (push) Failing after 1s
init: 静态站点部署配置 + cyberstar 项目
- Gitea CI 自动 rsync 到服务器
- K8S Nginx 按子域名路由到对应项目目录
- cyberstar 首个项目
2026-04-08 17:56:59 +08:00

36 lines
804 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: static-sites-ingress
annotations:
kubernetes.io/ingress.class: "traefik"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- cyberstar.airlabs.art
secretName: cyberstar-tls
rules:
# --- cyberstar ---
- host: cyberstar.airlabs.art
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: static-sites
port:
number: 80
# --- 新增项目:复制上面的 rule改 host 即可 ---
# - host: xxx.airlabs.art
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: static-sites
# port:
# number: 80