apiVersion: apps/v1 kind: Deployment metadata: name: noval namespace: noval-roog-code labels: app: noval spec: replicas: 2 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 selector: matchLabels: app: noval template: metadata: labels: app: noval spec: containers: - name: noval image: crpi-om2xd9y8cmaizszf.cn-beijing.personal.cr.aliyuncs.com/test-namespace-gu/writing-reddot:latest imagePullPolicy: Always ports: - containerPort: 8000 name: http env: - name: TZ value: Asia/Shanghai - name: NOVAL_DATA_DIR value: /app/data volumeMounts: - name: noval-data mountPath: /app/data resources: requests: cpu: "100m" memory: "128Mi" limits: cpu: "500m" memory: "512Mi" livenessProbe: httpGet: path: /api/health port: http initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 3 failureThreshold: 3 readinessProbe: httpGet: path: /api/health port: http initialDelaySeconds: 8 periodSeconds: 5 timeoutSeconds: 3 failureThreshold: 3 volumes: - name: noval-data persistentVolumeClaim: claimName: noval-data-pvc terminationGracePeriodSeconds: 30