fengling-auth-service/k8s/deployment.yaml
movingsam 9a7948e634 refactor: reorganize project structure to src/ with slnx solution
- Move all source code to src/ directory
- Add Fengling.AuthService.slnx solution file
- Update Dockerfile to reference src/ paths
- Update CI/CD workflow for new structure
- Optimize .dockerignore for cleaner builds
2026-02-28 18:31:52 +08:00

73 lines
1.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: fengling-auth-service
namespace: fengling
labels:
app: fengling-auth-service
version: v1
spec:
replicas: 2
selector:
matchLabels:
app: fengling-auth-service
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app: fengling-auth-service
version: v1
spec:
containers:
- name: fengling-auth-service
image: gitea.shtao1.cn/fengling/fengling-auth-service:latest
imagePullPolicy: Always
ports:
- containerPort: 80
name: http
protocol: TCP
env:
- name: ASPNETCORE_ENVIRONMENT
value: "Production"
- name: ASPNETCORE_URLS
value: "http://+:80"
- name: ConnectionStrings__DefaultConnection
valueFrom:
secretKeyRef:
name: fengling-auth-secrets
key: connection-string
- name: OpenIddict__Issuer
value: "https://auth.fengling.local"
- name: OpenIddict__Audience
value: "fengling-api"
resources:
requests:
cpu: "100m"
memory: "256Mi"
limits:
cpu: "500m"
memory: "512Mi"
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
imagePullSecrets:
- name: gitea-registry-secret
restartPolicy: Always
terminationGracePeriodSeconds: 30