# 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