Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add liveness, readiness and resources in k8s examples #24

Closed
JorritSalverda opened this issue Nov 4, 2016 · 1 comment
Closed

add liveness, readiness and resources in k8s examples #24

JorritSalverda opened this issue Nov 4, 2016 · 1 comment

Comments

@JorritSalverda
Copy link

For the b.gcr.io/endpoints/endpoints-runtime:0.3 container is there an endpoint to test for liveness and/or readiness?

And what resources does it need?

@kyessenov
Copy link
Contributor

For readiness and, perhaps, liveness probe, you can use "/endpoints_status" on the status port, which is 8090 by default:

  readinessProbe:
        httpGet:
          path: /endpoints_status
          port: 8090

Note that /endpoints_status triggers some minimal stats collection, so it's probably better to define another endpoint that just returns 200. We added one by default recently, but it's not released yet.
If you have a custom nginx config, you can also add another location manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants