k8sConfigs/myrari/deployment.yaml
2025-03-24 19:12:41 +08:00

46 lines
909 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: myfari-app
namespace: farui
labels:
app: myfari
spec:
replicas: 3
selector:
matchLabels:
app: myfari
template:
metadata:
labels:
app: myfari
spec:
containers:
- name: myfari
image: localhost:32000/public/myfari:v04
ports:
- containerPort: 3000
env:
- name: NODE_ENV
value: "production"
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "512Mi"
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 3000
initialDelaySeconds: 5
periodSeconds: 5