Created
April 12, 2021 09:15
-
-
Save mostafa-asg/aa25bc34d4985ece576e5de7c87e44f7 to your computer and use it in GitHub Desktop.
Kubernetes readinessProbe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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