Files
NovalRedot/k8s/deployment.yaml
ROOG 7d5f4640b3
All checks were successful
Deploy Noval to K3s / deploy (push) Successful in 2m35s
fix(deploy): align deployment image/pullPolicy with cloud registry and improve rollout diagnostics
2026-03-22 18:00:25 +08:00

66 lines
1.6 KiB
YAML

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