Difference between revisions of "LivenessProbe"

From wikieduonline
Jump to navigation Jump to search
Line 21: Line 21:
 
  .../...
 
  .../...
  
 +
 +
{{Liveness official example}}
  
 
== Related ==
 
== Related ==

Revision as of 09:47, 1 May 2024

kubectl describe pod liveness-http
Error from server (NotFound): pods "liveness-http" not found


helm show all grafana/grafana
.../...
readinessProbe:
  httpGet:
    path: /api/health
    port: 3000

livenessProbe:
  httpGet:
    path: /api/health
    port: 3000
  initialDelaySeconds: 60
  timeoutSeconds: 30
  failureThreshold: 10
.../...


apiVersion: v1
kind: Pod
metadata:
  labels:
    test: liveness
  name: liveness-http
spec:
  containers:
  - name: liveness
    image: registry.k8s.io/e2e-test-images/agnhost:2.40
    args:
    - liveness
    livenessProbe:
      httpGet:
        path: /healthz
        port: 8080
        httpHeaders:
        - name: Custom-Header
          value: Awesome
      initialDelaySeconds: 3
      periodSeconds: 3

Related

See also

Advertising: