Skip to content

Commit

Permalink
feat: add liveness probe support
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 10, 2024
1 parent 9351900 commit 33210c7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
14 changes: 14 additions & 0 deletions kubernetes/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ spec:
- name: http
protocol: TCP
containerPort: 6080
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
httpGet:
path: /
port: http
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
httpGet:
path: /_health
port: http
resources:
requests:
cpu: 30m
Expand Down
14 changes: 14 additions & 0 deletions kubernetes/gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,20 @@ spec:
- name: http
protocol: TCP
containerPort: 8080
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
httpGet:
path: /v1/cassette/
port: http
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
httpGet:
path: /v1/cassette/_health
port: http
resources:
requests:
cpu: 50m
Expand Down
5 changes: 5 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ server {
index index.html;
}

# Health Check
location /_health {
return 200;
}

# Error Pages
error_page 404 /error/404;
location /error/ {
Expand Down

0 comments on commit 33210c7

Please sign in to comment.