๐ŸŽฏ ืžื˜ืจืช ื”ืชืจื’ื•ืœ

ื‘ืžืขื‘ื“ื” ื–ื• ื ืชื—ื™ืœ ืœืขื‘ื•ื“ ืขื Health Probes, ื•ื‘ืžื™ื•ื—ื“:


ื—ืœืง 1 โ€” ื™ืฆื™ืจืช Pod ื—ื“ืฉ ืœ-Probes

ื ื™ืฆื•ืจ ืชื™ืงื™ื™ื” ื—ื“ืฉื” (ืœืžืฉืœ: health-probes) ื•ื ื™ืฆื•ืจ ืงื•ื‘ืฅ:

vi color-api-pod.yaml

ื”ื“ื‘ืง:

apiVersion: v1
kind: Pod
metadata:
  name: color-api-pod
spec:
  containers:
    - name: color-api
      image: lironefitoussi/color-api:1.2.0
      ports:
        - containerPort: 80
      resources:
        limits:
          cpu: "500m"
          memory: 512Mi
      startupProbe:
        httpGet:
          path: /health
          port: 80
        failureThreshold: 2
        periodSeconds: 3

๐Ÿ”Ž ื”ืกื‘ืจ

ื›ืœื•ืžืจ: