-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kubernetes): add health endpoints (#1602)
* feat(backend): add health endpoint * feat(helm): health probe path * feat(frontend): add health endpoints * feat(backend): remove unused app state fields * fix(active): rewrote active boards logic * feat(backend): add endpoint for resetting active boards
- Loading branch information
1 parent
8f97d7f
commit e188bc0
Showing
5 changed files
with
104 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
common: | ||
app: backend | ||
shortname: backend | ||
team: selvbetjent | ||
ingress: | ||
enabled: true | ||
trafficType: public | ||
service: | ||
internalPort: 3000 | ||
container: | ||
image: <+artifacts.primary.image> | ||
cpu: 0.3 | ||
memory: 512 | ||
env: | ||
- name: REDIS_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: redis | ||
key: redis-password | ||
- name: BACKEND_API_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: backend | ||
key: api-key | ||
probes: | ||
enabled: true | ||
spec: | ||
startupProbe: | ||
tcpSocket: | ||
port: 3000 | ||
periodSeconds: 1 | ||
timeoutSeconds: 1 | ||
failureThreshold: 300 | ||
livenessProbe: | ||
tcpSocket: | ||
port: 3000 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
readinessProbe: | ||
tcpSocket: | ||
port: 3000 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
app: backend | ||
shortname: backend | ||
team: selvbetjent | ||
ingress: | ||
enabled: true | ||
trafficType: public | ||
service: | ||
internalPort: 3000 | ||
container: | ||
image: <+artifacts.primary.image> | ||
cpu: 0.3 | ||
memory: 512 | ||
env: | ||
- name: REDIS_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: redis | ||
key: redis-password | ||
- name: BACKEND_API_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: backend | ||
key: api-key | ||
probes: | ||
enabled: true | ||
spec: | ||
startupProbe: | ||
tcpSocket: | ||
port: 3000 | ||
periodSeconds: 1 | ||
timeoutSeconds: 1 | ||
failureThreshold: 300 | ||
livenessProbe: | ||
tcpSocket: | ||
port: 3000 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
path: "/health" | ||
readinessProbe: | ||
tcpSocket: | ||
port: 3000 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { NextResponse } from 'next/server' | ||
|
||
export function GET() { | ||
return NextResponse.json({ status: 'OK' }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters