chore: update health check

This commit is contained in:
Jonas Kaninda
2024-11-25 17:40:03 +01:00
parent eb7f825969
commit 64de080158
6 changed files with 32 additions and 18 deletions

View File

@@ -56,7 +56,7 @@ spec:
containers:
- name: goma-gateway
image: jkaninda/goma-gateway
command: ["goma","server"]
command: ["/usr/local/bin/goma","server"]
resources:
limits:
memory: "128Mi"
@@ -65,18 +65,16 @@ spec:
- containerPort: 8080
livenessProbe:
httpGet:
path: /health/live
path: /healthz
port: 8080
initialDelaySeconds: 15
periodSeconds: 30
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /health/live
path: /readyz
port: 8080
initialDelaySeconds: 15
periodSeconds: 30
timeoutSeconds: 10
initialDelaySeconds: 5
periodSeconds: 10
volumeMounts:
- name: config
mountPath: /etc/goma/
@@ -84,4 +82,6 @@ spec:
- name: config
configMap:
name: goma-config
```
```
## 4. Kubernetes Advanced deployment using CRDs

View File

@@ -0,0 +1,12 @@
---
title: Kubernetes Operator
layout: default
parent: Installation
nav_order: 5
---
# Kubernetes Operator
**Install the CRDs into the cluster:**

View File

@@ -27,7 +27,9 @@ gateway:
healthyStatuses: [200,404] # Healthy statuses
```
- Goma Gateway healthcheck: `/health/live`
- Goma Gateway health check:
- `/readyz`
- `/healthz`
- Routes health check: `health/routes`
### Gateway healthcheck response: