I'm trying to deploy an app that contains a health check endpoint. If it fails, the pod should be destroyed, but the K8s keeps the pod with Running status.
Config:
readinessProbe:
httpGet:
path: /healthcheck
port: 3001
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
Pod:
docs-app-768b47bc69-lrlcf 0/1 Running 0 1m
So, there is a way to destroy the pod when the readiness probe fails?