Difference between revisions of "Kubernetes probes"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
Check mechanisms: | Check mechanisms: | ||
− | * [[exec]] | + | * <code>[[exec]]</code> |
− | * [[grpc]] | + | * <code>[[grpc]]</code> |
− | * [[httpGet]]: [[httpHeaders]] | + | * <code>[[httpGet]]: [[httpHeaders]]</code> |
− | * [[tcpSocket]] | + | * <code>[[tcpSocket]]</code> |
[[kind: Deployment]] | [[kind: Deployment]] |
Revision as of 10:00, 1 May 2024
Check mechanisms:
kind: Deployment
apiVersion: v1 kind: Pod metadata: labels: test: liveness name: liveness-exec spec: containers: - name: liveness image: registry.k8s.io/busybox args: - /bin/sh - -c - touch /tmp/healthy; sleep 30; rm -f /tmp/healthy; sleep 600 livenessProbe: exec: command: - cat - /tmp/healthy initialDelaySeconds: 5 periodSeconds: 5
readinessProbe: httpGet: path: /api/health port: 3000 livenessProbe: httpGet: path: /api/health port: 3000 initialDelaySeconds: 60 timeoutSeconds: 30 failureThreshold: 10
Related
Redis values.yml
customStartupProbe
customLivenessProbe
customReadinessProbe
- Kubernetes restartPolicy
- CrashLoopBackOff
See also
- K8s probes:
readinessProbe, livenessProbe, StartupProbe, exec, gRPC, HttpGet, tcpSocket, TerminationGracePeriodSeconds
- Kubernetes deployments, strategies:
kind: Deployment
, Strategies:Recreate
orRollingUpdate
,kubectl
[create | describe | get | scale | rollout | deployment/
], Kubernetes Canary Deployments,deployment.kubernetes.io
Advertising: