Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

feat(aws): add healthz checks to cloudformation template #1481

Merged
merged 3 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions installation/aws/VmClarity.cfn
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ Resources:
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: wget --no-verbose --tries=1 --spider http://127.0.0.1:8081/healthz/ready || exit 1
interval: 10s
retries: 60

orchestrator:
image: ${OrchestratorContainerImage}
Expand All @@ -278,6 +282,10 @@ Resources:
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: wget --no-verbose --tries=1 --spider http://127.0.0.1:8082/healthz/ready || exit 1
interval: 10s
retries: 60

ui:
image: ${UIContainerImage}
Expand All @@ -303,6 +311,10 @@ Resources:
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: wget --no-verbose --tries=1 --spider http://127.0.0.1:8083/healthz/ready || exit 1
interval: 10s
retries: 60

gateway:
image: nginx
Expand Down Expand Up @@ -334,6 +346,10 @@ Resources:
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "1326"]
interval: 10s
retries: 60

trivy-server:
image: ${TrivyServerContainerImage}
Expand All @@ -353,6 +369,10 @@ Resources:
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "9992"]
interval: 10s
retries: 60

grype-server:
image: ${GrypeServerContainerImage}
Expand All @@ -373,6 +393,10 @@ Resources:
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: wget --no-verbose --tries=10 --spider http://127.0.0.1:8080/healthz/ready || exit 1
interval: 10s
retries: 60

freshclam-mirror:
image: ${FreshclamMirrorContainerImage}
Expand Down Expand Up @@ -406,6 +430,10 @@ Resources:
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: wget --no-verbose --tries=1 --spider http://127.0.0.1:8082/healthz/ready || exit 1
interval: 10s
retries: 60

postgresql:
image: ${PostgresqlContainerImage}
Expand Down
7 changes: 1 addition & 6 deletions installation/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ services:
- info
ports:
- "8888:8888"
- "8081:8081"
env_file: ./apiserver.env
deploy:
mode: replicated
Expand All @@ -31,8 +30,6 @@ services:
- run
- --log-level
- info
ports:
- "8082:8082"
env_file: ./orchestrator.env
deploy:
mode: replicated
Expand Down Expand Up @@ -62,8 +59,6 @@ services:
- run
- --log-level
- info
ports:
- "8083:8083"
env_file: ./uibackend.env
deploy:
mode: replicated
Expand Down Expand Up @@ -137,7 +132,7 @@ services:
source: grype-server-db
target: /data
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "9991"]
test: wget --no-verbose --tries=10 --spider http://127.0.0.1:8080/healthz/ready || exit 1
interval: 10s
retries: 60

Expand Down
Loading