Skip to content

Commit

Permalink
Re-add livenessProbe and readinessProbe
Browse files Browse the repository at this point in the history
`livenessProbe` and `readinessProbe` seem to have vanished during the go migration.
  • Loading branch information
stuebingerb authored and J12934 committed Jan 7, 2025
1 parent ffdb7b6 commit f5963ce
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helm/multi-juicer/templates/balancer/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ spec:
containerPort: 8080
- name: metrics
containerPort: 8081
livenessProbe:
httpGet:
path: /balancer/api/health
port: http
readinessProbe:
httpGet:
path: /balancer/api/readiness
port: http
volumeMounts:
- name: config-volume
mountPath: /config/config.json
Expand Down
24 changes: 24 additions & 0 deletions helm/multi-juicer/tests/__snapshot__/multijuicer_test.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,20 @@ default values render correctly:
name: balancer-secret
image: ghcr.io/juice-shop/multi-juicer/balancer:v42.0.0
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /balancer/api/health
port: http
name: multi-juicer
ports:
- containerPort: 8080
name: http
- containerPort: 8081
name: metrics
readinessProbe:
httpGet:
path: /balancer/api/readiness
port: http
resources:
limits:
cpu: 400m
Expand Down Expand Up @@ -646,12 +654,20 @@ full values render out correctly:
name: balancer-secret
image: ghcr.io/juice-shop/multi-juicer/balancer:v42.0.0
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /balancer/api/health
port: http
name: multi-juicer
ports:
- containerPort: 8080
name: http
- containerPort: 8081
name: metrics
readinessProbe:
httpGet:
path: /balancer/api/readiness
port: http
resources:
limits:
cpu: 400m
Expand Down Expand Up @@ -3331,12 +3347,20 @@ production notes work correctly:
name: balancer-secret
image: ghcr.io/juice-shop/multi-juicer/balancer:v42.0.0
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /balancer/api/health
port: http
name: multi-juicer
ports:
- containerPort: 8080
name: http
- containerPort: 8081
name: metrics
readinessProbe:
httpGet:
path: /balancer/api/readiness
port: http
resources:
limits:
cpu: 400m
Expand Down

0 comments on commit f5963ce

Please # to comment.