chore: 移除 Jenkinsfile,新增 deploy/ 目录部署配置
- 移除不符合团队规范的 Jenkinsfile - 新增 deploy/deployment.yaml(SWR 镜像、副本数1、私有镜像拉取 secrets) - 新增 deploy/service.yaml(80 端口转发到容器 3000 端口) - 新增 deploy/ingress.yaml(域名 personal.virtheart.com,Traefik + cert-manager) - docker-compose.yml 改为使用 SWR 镜像,保证本地与生产一致 - README 更新部署说明
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# =========================================================
|
||||
# Arcticnewone 生产部署 - Ingress
|
||||
#
|
||||
# 域名: personal.virtheart.com(已在 issue 评论中确认)
|
||||
# 按团队统一 Ingress 模板配置,结构不可随意改动。
|
||||
# =========================================================
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: arcticnewone-ingress
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "lets-encrypt"
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- personal.virtheart.com
|
||||
secretName: arcticnewone-tls
|
||||
rules:
|
||||
- host: personal.virtheart.com
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: arcticnewone-svc # 注意:必须与 Service 名称一致
|
||||
port:
|
||||
number: 80
|
||||
Reference in New Issue
Block a user