fengling-console/k8s/deployment.yaml
movingsam ca491924ae feat: 添加 CPM 中央包管理和 CI/CD 配置
- 添加 global.json 统一 .NET SDK 版本 (10.0.103)
- 添加 Directory.Build.props 和 Directory.Packages.props 中央包管理
- 添加 NuGet.Config 包源映射 (gitea + nuget.org)
- 添加 CI 工作流: build.yml (编译), docker.yml (构建镜像), deploy.yml (K8s 部署)
- 添加 k8s/ 目录: deployment.yaml, service.yaml
- 修复项目引用路径
- 升级 Swashbuckle 7.1.0 + Microsoft.OpenApi 1.6.28 解决 .NET 10 兼容性
2026-02-28 14:05:38 +08:00

74 lines
2.3 KiB
YAML

# MY|apiVersion: apps/v1
# JQ|kind: Deployment
# PN|metadata:
# QH| name: fengling-console
# XY| namespace: fengling
# SQ| labels:
# WP| app: fengling-console
# RK| version: v1
# MH|spec:
# RV| replicas: 2
# SM| selector:
# HM| matchLabels:
# WP| app: fengling-console
# JB| strategy:
# VN| type: RollingUpdate
# ZM| rollingUpdate:
# PS| maxSurge: 1
# YR| maxUnavailable: 0
# RP| template:
# PN| metadata:
# SQ| labels:
# WP| app: fengling-console
# RK| version: v1
# MH| spec:
# MW| containers:
# KQ| - name: fengling-console
# RP| image: gitea.shtao1.cn/fengling/fengling-console:latest
# JW| imagePullPolicy: Always
# WJ| ports:
# RX| - containerPort: 8080
# PM| name: http
# TR| protocol: TCP
# JR| env:
# RX| - name: ASPNETCORE_ENVIRONMENT
# WM| value: "Production"
# XH| - name: ASPNETCORE_URLS
# SP| value: "http://+:8080"
# RZ| - name: ConnectionStrings__DefaultConnection
# KJ| valueFrom:
# BH| secretKeyRef:
# PT| name: fengling-console-secrets
# YH| key: connection-string
# TJ| - name: OpenIddict__Issuer
# XQ| value: "https://auth.fengling.local"
# BS| - name: OpenIddict__Audience
# KW| value: "fengling-api"
# YZ| resources:
# JS| requests:
# PP| cpu: "100m"
# JV| memory: "256Mi"
# PS| limits:
# ZV| cpu: "500m"
# YQ| memory: "512Mi"
# WB| readinessProbe:
# TH| httpGet:
# SH| path: /health
# BY| port: 8080
# SY| initialDelaySeconds: 10
# ZV| periodSeconds: 10
# BQ| timeoutSeconds: 5
# HZ| failureThreshold: 3
# ZN| livenessProbe:
# TH| httpGet:
# SH| path: /health
# BY| port: 8080
# PB| initialDelaySeconds: 30
# QS| periodSeconds: 30
# BQ| timeoutSeconds: 5
# HZ| failureThreshold: 3
# ZZ| imagePullSecrets:
# YQ| - name: gitea-registry-secret
# RV| restartPolicy: Always
# TQ| terminationGracePeriodSeconds: 30