Skip to content

Commit

Permalink
Merge pull request jupyterhub#1004 from tmshn/probes
Browse files Browse the repository at this point in the history
Configure liveness/readinessProbe
  • Loading branch information
consideRatio authored Aug 15, 2019
2 parents 733d771 + 8c0204f commit f12ab55
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jupyterhub/templates/hub/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,11 @@ spec:
ports:
- containerPort: 8081
name: hub
livenessProbe:
httpGet:
path: /health
port: hub
readinessProbe:
httpGet:
path: /health
port: hub
8 changes: 8 additions & 0 deletions jupyterhub/templates/proxy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,11 @@ spec:
name: proxy-public
- containerPort: 8001
name: api
livenessProbe:
httpGet:
path: /_chp_healthz
port: proxy-public
readinessProbe:
httpGet:
path: /health # Wait until hub is ready (this is proxied to hub)
port: proxy-public

0 comments on commit f12ab55

Please sign in to comment.