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,20 @@
|
||||
# =========================================================
|
||||
# Arcticnewone 生产部署 - Service
|
||||
#
|
||||
# 容器监听 3000 端口(Dockerfile 中 EXPOSE 3000),
|
||||
# Service 暴露 80 端口,与团队 Ingress 模板的 backend port 80 保持一致。
|
||||
# =========================================================
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: arcticnewone-svc
|
||||
labels:
|
||||
app: arcticnewone
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: arcticnewone
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 3000
|
||||
Reference in New Issue
Block a user