Skip to content

Commit

Permalink
Updated Reccomendation service to Prod Instance
Browse files Browse the repository at this point in the history
- updated k8s deployment — removed local reccomendation container
- updated circuitBreaker - updated Recc Host url to Prod Instance
- updated tests — now point at live prod k8s deployment
  • Loading branch information
mkornyev committed Apr 26, 2021
1 parent cf61b21 commit 1c16eb8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This project uses a MySQL `AWS RDS` backend, and a lightweight `k8s`/`Docker`orc

* each running NodeJS / Express API
* handle biz & logic concerns
* Integrated with an `AWS SQS` broker

#### 2 BFFs (backend-for-frontends)

Expand Down
8 changes: 0 additions & 8 deletions circuitBreakerConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ spec:
- port: 83
name: rec-breaker
targetPort: 80
- port: 80
name: rec-service
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -45,9 +42,4 @@ spec:
port: 80
initialDelaySeconds: 5
periodSeconds: 5
- name: rec-service
image: pmerson/book-recommendations-ms:latest
imagePullPolicy: Always
ports:
- containerPort: 8080

2 changes: 1 addition & 1 deletion reccCircuitBreaker/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
SERVER_HOST = '0.0.0.0'
SERVER_PORT = 80

RECC_ENGINE_HOST = 'http://10.100.236.41:80/recommended-titles/isbn'
RECC_ENGINE_HOST = 'http://3.131.68.68:80/recommended-titles/isbn'
REQ_TIMEOUT = 3
BREAKER_LAST_OPENED = None

Expand Down
4 changes: 2 additions & 2 deletions tests/test_books.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
config:
target: "http://ec2-18-207-204-163.compute-1.amazonaws.com:82"
target: "http://a1a9aa59598b14ac4acebba4c7cedaac-361743319.us-east-2.elb.amazonaws.com:82"
http:
timeout: 20
phases:
Expand All @@ -14,7 +14,7 @@ config:
defaults:
headers:
user-agent: "Mozilla/5.0 (X11; CrOS x86_64 8172.45.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.64 Safari/537.36"
Authorization: "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJLUkFNRVJTIiwibHVscyI6IktSQU1FUlMiLCJjcmVhdGVkIjoxNjE3MjMwNzUxM zIwLCJyb2xlcyI6W10sImlzcyI6InRjdS5nb3YuYnIiLCJlaW8iOiIxMC4xMDAuMTkyLjUxIiwibnVzIjoiSk9BTyBBTkR PTklPUyBTUFlSSURBS0lTIiwibG90IjoiU2VnZWMiLCJhdWQiOiJPUklHRU1fUkVRVUVTVF9CUk9XU0VSIiwidHVzIjoiV ENVIiwiY3VscyI6MjI1LCJjb2QiOjIyNSwiZXhwIjoxNjE3MjczOTUxMzIwLCJudWxzIjoiSk9BTyBBTkRPTklPUyBTUFl SSURBS0lTIn0.qtJ0Sf2Agqd_JmxGKfqiLw8SldOiP9e21OT4pKC8BqdXrJ0plqOWHf0hHbwQWp-foEBZzAUWX0J-QHtLy Q7SRw"
Authorization: "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJLUkFNRVJTIiwibHVscyI6IktSQU1FUlMiLCJjcmVhdGVkIjoxNjE3MjMwNzUxMzIwLCJyb2xlcyI6W10sImlzcyI6InRjdS5nb3YuYnIiLCJlaW8iOiIxMC4xMDAuMTkyLjUxIiwibnVzIjoiSk9BTyBBTkRPTklPUyBTUFlSSURBS0lTIiwibG90IjoiU2VnZWMiLCJhdWQiOiJPUklHRU1fUkVRVUVTVF9CUk9XU0VSIiwidHVzIjoiVENVIiwiY3VscyI6MjI1LCJjb2QiOjIyNSwiZXhwIjoxNjE3MjczOTUxMzIwLCJudWxzIjoiSk9BTyBBTkRPTklPUyBTUFlSSURBS0lTIn0.qtJ0Sf2Agqd_JmxGKfqiLw8SldOiP9e21OT4pKC8BqdXrJ0plqOWHf0hHbwQWp-foEBZzAUWX0J-QHtLyQ7SRw"
plugins:
expect: {}

Expand Down

0 comments on commit 1c16eb8

Please sign in to comment.