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