Skip to content

Commit

Permalink
Change liveness & readiness endpoints to common endpoint terms.
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Feb 20, 2024
1 parent 23887f1 commit 178a855
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions kustomize/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
cpu: "1000m"
startupProbe:
httpGet:
path: /liveness
path: /livez
port: 8080
scheme: HTTP
initialDelaySeconds: 3
Expand All @@ -39,7 +39,7 @@ spec:
failureThreshold: 3
livenessProbe:
httpGet:
path: /liveness
path: /livez
port: 8080
scheme: HTTP
periodSeconds: 10
Expand All @@ -48,7 +48,7 @@ spec:
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /readiness
path: /readyz
port: 8080
scheme: HTTP
periodSeconds: 10
Expand Down
4 changes: 2 additions & 2 deletions resource_tracking/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def __init__(self, get_response):

def __call__(self, request):
if request.method == "GET":
if request.path == "/readiness":
if request.path == "/readyz":
return self.readiness(request)
elif request.path == "/liveness":
elif request.path == "/livez":
return self.liveness(request)
return self.get_response(request)

Expand Down

0 comments on commit 178a855

Please sign in to comment.