Skip to content

Commit cf26dd2

Browse files
committed
fix issues for kubernetes
1 parent 704fdbc commit cf26dd2

File tree

5 files changed

+46
-14
lines changed

5 files changed

+46
-14
lines changed

compose.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
peerprep:
33
build: peerprep
4-
image: modembcc/peerprep
4+
image: distractedcat/peerprep
55
env_file:
66
- peerprep/.env
77
ports:
@@ -17,7 +17,7 @@ services:
1717

1818
user-service:
1919
build: user-service
20-
image: modembcc/user-service
20+
image: distractedcat/user-service
2121
volumes:
2222
- /user-service/node_modules
2323
env_file:
@@ -34,7 +34,7 @@ services:
3434

3535
backend:
3636
build: backend
37-
image: modembcc/backend
37+
image: distractedcat/backend
3838
env_file:
3939
- backend/.env
4040
ports:
@@ -73,7 +73,7 @@ services:
7373

7474
matching-service:
7575
build: matching-service
76-
image: modembcc/matching-service
76+
image: distractedcat/matching-service
7777
env_file:
7878
- matching-service/.env
7979
extra_hosts:
@@ -89,7 +89,7 @@ services:
8989

9090
matching-service-api:
9191
build: matching-service-api
92-
image: modembcc/matching-service-api
92+
image: distractedcat/matching-service-api
9393
env_file:
9494
- matching-service-api/.env
9595
extra_hosts:
@@ -107,7 +107,7 @@ services:
107107

108108
storage-blob-api:
109109
build: storage-blob-api
110-
image: modembcc/storage-blob-api
110+
image: distractedcat/storage-blob-api
111111
env_file:
112112
- storage-blob-api/.env
113113
extra_hosts:
@@ -124,7 +124,7 @@ services:
124124

125125
collab:
126126
build: collab
127-
image: modembcc/collab
127+
image: distractedcat/collab
128128
env_file:
129129
- collab/.env
130130
ports:
@@ -137,6 +137,7 @@ services:
137137

138138
nginx:
139139
build: nginx
140+
image: distractedcat/nginx
140141
ports:
141142
- "80:80"
142143
volumes:

kubernetes/matching-service-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ spec:
2121
- name: REDIS_URI
2222
value: redis:6379
2323
- name: BACKEND_MATCH_URI
24-
value: http:///backend:9090/match
24+
value: http://backend:9090/match

kubernetes/nginx-deployment.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: nginx
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: nginx
10+
template:
11+
metadata:
12+
labels:
13+
app: nginx
14+
spec:
15+
containers:
16+
- name: nginx
17+
image: distractedcat/nginx:1.0.0
18+
ports:
19+
- containerPort: 80

kubernetes/nginx-service.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: nginx
5+
spec:
6+
selector:
7+
app: nginx
8+
ports:
9+
- protocol: TCP
10+
port: 80
11+
targetPort: 80
12+
type: ClusterIP

kubernetes/peerprep-deployment.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ spec:
1414
containers:
1515
- name: peerprep
1616
image: distractedcat/peerprep:1.0.0
17-
imagePullPolicy: IfNotPresent
17+
imagePullPolicy: Always
1818
env:
1919
- name: NEXT_PUBLIC_QUESTION_SERVICE
20-
value: http://backend:9090
20+
value: backend
2121
- name: NEXT_PUBLIC_USER_SERVICE
22-
value: http://user-service:3001
22+
value: users
2323
- name: NEXT_PUBLIC_MATCHING_SERVICE
24-
value: http://matching-service-api:9200
24+
value: matchmaking
2525
- name: NEXT_PUBLIC_STORAGE_BLOB
26-
value: http://storage-blob-api:9300
26+
value: blob
2727
- name: NEXT_PUBLIC_NGINX
28-
value: http://peerprep:3000
28+
value: http://nginx:80
2929
- name: DEV_ENV
3030
value: not
3131
ports:

0 commit comments

Comments
 (0)