Skip to content

Commit e5d0d80

Browse files
committed
Class 5
1 parent eb8458e commit e5d0d80

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Docker/Golang/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ ENV DEBUG=false \
99
FAIL=0 \
1010
VERSION=1 \
1111
MESSAGE=1 \
12-
DB_ENDPOINT=db-homework \
12+
DB_ENDPOINT=devops-course-1-db.ckv0gka4qcpi.us-east-1.rds.amazonaws.com \
1313
DB_PORT=5432 \
1414
DB_USER=postgres \
1515
DB_USERNAME=postgres \
1616
DB_PASS=postgres \
1717
DB_PASSWORD=postgres \
18-
DB_NAME=db \
18+
DB_NAME=devops_course_1_db \
1919
DB=db \
2020
FS_DIR="" \
2121
REDIS_ENDPOINT=redis-homework \

Docker/k8s/golang-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ spec:
2323
- name: DB_NAME
2424
value: "devops_course_1_db"
2525
- name: DB_ENDPOINT
26-
value: "xxx.rds.amazonaws.com"
26+
value: "devops-course-1-db.ckv0gka4qcpi.us-east-1.rds.amazonaws.com"
2727
- name: REDIS_ENDPOINT
28-
value: "xxx.cache.amazonaws.com"
28+
value: "devops-course-1-valkey.9g1rlj.clustercfg.use1.cache.amazonaws.com"
2929
---
3030
apiVersion: v1
3131
kind: Service

Docker/k8s/nodejs-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ spec:
1919
- containerPort: 4000
2020
env:
2121
- name: BACKEND_URL
22-
value: "http://<<public-ip>>:31215"
22+
value: "http://54.162.102.154:31215"
2323
- name: REACT_APP_BACKEND_URL
24-
value: "http://<<public-ip>>:31215"
24+
value: "http://54.162.102.154:31215"
2525
---
2626
apiVersion: v1
2727
kind: Service

k8s-helm/values.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ deployments:
2424
- name: DB_NAME
2525
value: "devops_course_1_db"
2626
- name: DB_ENDPOINT
27-
value: "xxx.us-east-1.rds.amazonaws.com"
27+
value: "devops-course-1-db.ckv0gka4qcpi.us-east-1.rds.amazonaws.com"
2828
- name: REDIS_ENDPOINT
29-
value: "xxx.clustercfg.use1.cache.amazonaws.com"
29+
value: "devops-course-1-valkey.9g1rlj.clustercfg.use1.cache.amazonaws.com"
3030

3131
- name: nodejs-app
3232
replicaCount: 1
3333
image: "slatch/it-works-on-my-machine-nodejs-homework:latest"
3434
containerPort: 8080
3535
envs:
3636
- name: BACKEND_URL
37-
value: "xxx:31215"
37+
value: "http://54.144.9.236:31215"
3838
- name: REACT_APP_BACKEND_URL
39-
value: "xxx:31215"
39+
value: "http://54.144.9.236:31215"
4040

4141
env:
42-
REDIS_HOST: xxx.clustercfg.use1.cache.amazonaws.com
42+
REDIS_HOST: devops-course-1-valkey.9g1rlj.clustercfg.use1.cache.amazonaws.com
4343
REDIS_PORT: 6379
44-
POSTGRES_HOST: xxx.us-east-1.rds.amazonaws.com
44+
POSTGRES_HOST: devops-course-1-db.ckv0gka4qcpi.us-east-1.rds.amazonaws.com
4545
POSTGRES_PORT: 5432
4646
POSTGRES_DB: devops_course_1_db
4747
POSTGRES_USER: postgres

0 commit comments

Comments
 (0)