Untitled

mail@pastecode.io avatar
unknown
plain_text
24 days ago
707 B
5
Indexable
Never
apiVersion: apps/v1
kind: Deployment
metadata:
  name: your-deployment
spec:
  replicas: 3
  selector:
    matchLabels:
      app: your-app
  template:
    metadata:
      labels:
        app: your-app
    spec:
      containers:
      - name: your-container
        image: your-image
        ports:
        - containerPort: 80
        livenessProbe:
          exec:
            command:
            - sh
            - -c
            - '[ -f /tmp/health ]'
          initialDelaySeconds: 5
          periodSeconds: 10
        readinessProbe:
          exec:
            command:
            - sh
            - -c
            - '[ -f /tmp/health ]'
          initialDelaySeconds: 3
          periodSeconds: 5
Leave a Comment