Skip to content

Commit

Permalink
Merge pull request #58 from DanStough/dans/service-mesh-product-liven…
Browse files Browse the repository at this point in the history
…ess-probe

Add liveness probe to product api
  • Loading branch information
webdog authored Jun 7, 2022
2 parents b8ab821 + 3cc5d85 commit 8ca4012
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion service-mesh/deploy/hashicups/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
serviceAccountName: postgres
containers:
- name: postgres
image: hashicorpdemoapp/product-api-db:v0.0.16
image: hashicorpdemoapp/product-api-db:v0.0.22
ports:
- containerPort: 5432
env:
Expand Down
9 changes: 7 additions & 2 deletions service-mesh/deploy/hashicups/product-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
path: conf.json
containers:
- name: product-api
image: hashicorpdemoapp/product-api:v0.0.16
image: hashicorpdemoapp/product-api:v0.0.22
ports:
- containerPort: 9090
- containerPort: 9103
Expand All @@ -76,7 +76,12 @@ spec:
value: "/config/conf.json"
livenessProbe:
httpGet:
path: /health
path: /health/livez
port: 9090
periodSeconds: 5
readinessProbe:
httpGet:
path: /health/readyz
port: 9090
initialDelaySeconds: 15
timeoutSeconds: 1
Expand Down
4 changes: 2 additions & 2 deletions service-mesh/deploy/hashicups/public-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ spec:
serviceAccountName: public-api
containers:
- name: public-api
image: hashicorpdemoapp/public-api:v0.0.5
image: hashicorpdemoapp/public-api:v0.0.7
ports:
- containerPort: 8080
env:
- name: BIND_ADDRESS
value: ":8080"
- name: PRODUCT_API_URI
value: "http://localhost:9090"
value: "http://localhost:9090"

0 comments on commit 8ca4012

Please sign in to comment.