--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Use a readiness probe to check whether a pod is ready (started up correctly). Liveness probes are used to check if a pod is still behaving properly. It is a successful readiness probe that adds a pod to the service's endpoints so better to use that.
Cheers
Jimmi
That is a very good point. Perhaps we should make it easier to test scenarios e.g startup when required services unavailable, services available, services become unavailable, become available again? These are normal things that cloud native stuff needs to handle.
Failing on startup because required services aren't available sounds like an antipattern to me - better to keep trying reconnecting as needed. As Kelsey Hightower puts it: "The application should simply retry the database connection, using some sort of backoff, and log errors along the way. At some point either the database will come online, or your company will be out of business." (good read:
https://medium.com/@kelseyhightower/12-fractured-apps-1080c73d481c).