OpenLiberty / guide-kubernetes-microprofile-health

A guide on how to check the health of microservices on Kubernetes by setting up readiness probes to inspect MicroProfile Health Check endpoints: https://openliberty.io/guides/kubernetes-microprofile-health.html
Other
5 stars 3 forks source link

Review on 10/11's draft #4

Closed evelinec closed 6 years ago

evelinec commented 6 years ago

What you'll learn

Prereqs

Add health check to ping microservice

Configure readiness and liveness probes

Deploy name and ping microservices

Trigger restart in name microservice and Trigger restart in name microservice and observe effects on ping microservice

Testing the microservices

Related guides

General

proubatsis commented 6 years ago

@evelinec

why is the health check implemented for the name service already?

Because we provide them an endpoint that allows them to make the service unhealthy to test the probes later in the guide, it wouldn't really be a valuable experience for the user to create this health check. The ping health check is considerably different then the one for name.

Perhaps to use the HOSTNAME variable? Also, for the http://name-service:9080/api url in this method, can you get the port from runtime?

We can't use the HOSTNAME environment variable in this case, but I can configure it elsewhere so it is not hardcoded in the file.

A clear indication of what the [hostname] is, seems needed here to help with usability.

~Currently working out what to do with this for the config guide, so we'll update this once we sort that out.~

The kube intro guide does this already, we'll do the same thing here.

So the tests aren't really testing the health checks, just checking the two microservices are functioning accordingly, right? Then, this section is not useful/meaningful to this guide.

I'll see what can be done with testing the health checks and probes first before we decide to remove the section.

proubatsis commented 6 years ago

@evelinec

6

https://github.com/OpenLiberty/guides-common/pull/196

evelinec commented 6 years ago

Reviewed all the changes, they look good. Approve for merging, then, refresh the test site, andI'll review again. Thanks.