Files
macos-tools/deploy/devops/helm-values/values-gitea.yaml
gaoandClaude fc9371e443 feat: 完成企业级 DevOps 基础设施部署
## 🏗️ 新增功能
- **shared/**: 完整的基础组件部署方案
  - docker-compose.yml: 统一编排所有基础服务
  - .env.example: 标准化环境变量配置
  - prometheus/prometheus.yml: 监控配置
  - bin/up.sh & down.sh: 一键部署脚本
  - README.md: 完整的使用文档

## 🛠️ 核心服务
- **数据库层**: PostgreSQL 16 + MySQL 8 (统一密码: 123456)
- **缓存层**: Redis 7 (密码: 123456)
- **代码管理**: GitLab CE + Gitea (双代码仓库)
- **镜像仓库**: Harbor (Docker Registry)
- **监控层**: Prometheus + Grafana + cAdvisor
- **网关反代**: Traefik v3.1

## 🔧 技术优化
- 所有端口统一使用 2xx80 系列,避免端口冲突
- 统一网络架构 (core network),支持多项目接入
- 完善的健康检查和服务依赖配置
- 支持 ARM64 架构 (MySQL 8 兼容性修复)

## 📚 文档更新
- SYSTEM-CONFIG.md: 系统配置文档完善
- harbor/README.md: Harbor 模块使用说明
- docs/: 完整的部署和运维文档

## 🚀 部署说明
所有服务已成功启动并通过验证:
- GitLab: http://localhost:28082 (root/SecurePass2024!)
- Gitea: http://localhost:23000
- Harbor: http://localhost:28081
- Grafana: http://localhost:23001 (admin/123456)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-22 00:19:41 +08:00

78 lines
1.7 KiB
YAML

# values-gitea.yaml (Helm chart: gitea-charts/gitea)
# 访问地址: https://gitea.127.0.0.1.nip.io
# 命名空间: devops
gitea:
admin:
username: admin
password: "DLMLTv4xwNctUcvnhI1dti7xZ4u1TyFWbo/wnUsv8fE="
email: "[email protected]"
# 如使用共享 PostgreSQL,请配置数据库连接;否则改用内置 SQLite(不推荐)
config:
database:
DB_TYPE: postgres
HOST: "postgresql.shared-base.svc.cluster.local:5432"
NAME: "gitea"
USER: "gitea"
PASSWD: "gitea123"
SSL_MODE: disable
server:
ROOT_URL: "https://gitea.127.0.0.1.nip.io"
DOMAIN: "gitea.127.0.0.1.nip.io"
security:
INSTALL_LOCK: true
# 简化配置,仅使用外部数据库
additionalConfigSources: []
disableSSH: true
disableInstaller: true
service:
http:
type: ClusterIP
port: 3000
ssh:
type: ClusterIP
port: 22
ingress:
enabled: true
className: "nginx"
hosts:
- host: "gitea.127.0.0.1.nip.io"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- "gitea.127.0.0.1.nip.io"
secretName: gitea-tls # 可用自签或 cert-manager
persistence:
enabled: true
# 方案 A:使用已存在的 PVC(把 Docker 卷挂进来)
existingClaim: "pvc-gitea" # 如无请删除该行改用方案 B
# 方案 B:自动创建 PVC(开发环境)
size: 20Gi
# storageClass: "" # 使用默认 StorageClass
resources:
requests:
cpu: 200m
memory: 512Mi
limits:
cpu: "1"
memory: 1Gi
# 禁用内置数据库,使用 shared-base
postgresql:
enabled: false
mysql:
enabled: false
mariadb:
enabled: false
# 监控暴露(可选)
metrics:
enabled: true