Untitled
unknown
plain_text
a year ago
829 B
8
Indexable
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
replicas: 1
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app
image: my-app-image:latest
command: ["node", "--max-old-space-size=4096", "app.js"]
resources:
limits:
memory: "4Gi"
requests:
memory: "2Gi"
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 60
periodSeconds: 30
readinessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 30
periodSeconds: 15
Editor is loading...
Leave a Comment