Skip to content

Instantly share code, notes, and snippets.

@mostafa-asg
Created April 12, 2021 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mostafa-asg/aa25bc34d4985ece576e5de7c87e44f7 to your computer and use it in GitHub Desktop.
Save mostafa-asg/aa25bc34d4985ece576e5de7c87e44f7 to your computer and use it in GitHub Desktop.
Kubernetes readinessProbe
A readiness probe allows Kubernetes to poll the pod and not consider it ready to receive requests until the application indicates it is ready.
```YAML
readinessProbe: # if readiness probe fails, is taken out of your loadbalancer
initialDelaySeconds: 15 #adjust this to be a little less than the time it normally takes for your application to startup
httpGet:
path: /internal/health
port: 8080
timeoutSeconds: 3
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment