Skip to content

Commit

Permalink
Examples: Update readiness and liveness checks. (#821)
Browse files Browse the repository at this point in the history
This adds readiness checks to the xds and relay examples, and updates
the liveness checks to be more aggressive than their previous
configuration.

Also fixed a small formatting issue in the admin docs (newline between
tables).

Closes #818
  • Loading branch information
markmandel authored Oct 14, 2023
1 parent c15fd53 commit cdd3e82
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/deployment/admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ a list of the criteria for each service an provider.
| Manage | Provider is ready |
| Relay | Provider is ready |
| Agent | Provider is ready AND connected to relay |

<br/>

| Provider | Readiness |
|----------|--------------------------------------------|
Expand Down
9 changes: 9 additions & 0 deletions examples/agones-xonotic-relay/proxy-pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,20 @@ spec:
- name: RUST_LOG
value: info #,quilkin=trace
livenessProbe:
periodSeconds: 5
failureThreshold: 3
httpGet:
path: /live
port: 8000
scheme: HTTP
readinessProbe:
periodSeconds: 1
failureThreshold: 900
successThreshold: 1
httpGet:
path: /ready
port: 8000
scheme: HTTP
ports:
- containerPort: 7777
protocol: UDP
Expand Down
18 changes: 18 additions & 0 deletions examples/agones-xonotic-relay/relay-control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,20 @@ spec:
value: info
image: us-docker.pkg.dev/quilkin-mark-dev/release/quilkin:0.7.0
livenessProbe:
periodSeconds: 5
failureThreshold: 3
httpGet:
path: /live
port: 8000
scheme: HTTP
readinessProbe:
periodSeconds: 1
failureThreshold: 900
successThreshold: 1
httpGet:
path: /ready
port: 8000
scheme: HTTP
ports:
- containerPort: 7800
protocol: TCP
Expand Down Expand Up @@ -160,11 +169,20 @@ spec:
value: info
image: us-docker.pkg.dev/quilkin-mark-dev/release/quilkin:0.7.0
livenessProbe:
periodSeconds: 5
failureThreshold: 3
httpGet:
path: /live
port: 8000
scheme: HTTP
readinessProbe:
periodSeconds: 1
failureThreshold: 900
successThreshold: 1
httpGet:
path: /ready
port: 8000
scheme: HTTP
serviceAccountName: quilkin-agones
---
apiVersion: v1
Expand Down
9 changes: 9 additions & 0 deletions examples/agones-xonotic-xds/proxy-pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,20 @@ spec:
- name: RUST_LOG
value: info #,quilkin=trace
livenessProbe:
periodSeconds: 5
failureThreshold: 3
httpGet:
path: /live
port: 8000
scheme: HTTP
readinessProbe:
periodSeconds: 1
failureThreshold: 900
successThreshold: 1
httpGet:
path: /ready
port: 8000
scheme: HTTP
ports:
- containerPort: 7777
protocol: UDP
Expand Down
9 changes: 9 additions & 0 deletions examples/agones-xonotic-xds/xds-control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,20 @@ spec:
value: info
image: us-docker.pkg.dev/quilkin/release/quilkin:0.7.0
livenessProbe:
periodSeconds: 5
failureThreshold: 3
httpGet:
path: /live
port: 8000
scheme: HTTP
readinessProbe:
periodSeconds: 1
failureThreshold: 900
successThreshold: 1
httpGet:
path: /ready
port: 8000
scheme: HTTP
ports:
- containerPort: 7800
protocol: TCP
Expand Down

0 comments on commit cdd3e82

Please sign in to comment.