Untitled

mail@pastecode.io avatar
unknown
plain_text
4 days ago
829 B
1
Indexable
Never
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
Leave a Comment