jaehyuk-jang

Fix error in backend

...@@ -4,7 +4,6 @@ metadata: ...@@ -4,7 +4,6 @@ metadata:
4 name: backend 4 name: backend
5 labels: 5 labels:
6 app: backend 6 app: backend
7 - tier: backend
8 spec: 7 spec:
9 selector: 8 selector:
10 matchLabels: 9 matchLabels:
......
1 apiVersion: v1 1 apiVersion: v1
2 kind: Service 2 kind: Service
3 metadata: 3 metadata:
4 + labels:
5 + app: backend
4 name: backend 6 name: backend
5 spec: 7 spec:
6 type: ClusterIP 8 type: ClusterIP
...@@ -8,4 +10,5 @@ spec: ...@@ -8,4 +10,5 @@ spec:
8 - port: 5000 10 - port: 5000
9 targetPort: 5000 11 targetPort: 5000
10 selector: 12 selector:
13 + name: backend
11 app: backend 14 app: backend
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
4 name: frontend 4 name: frontend
5 labels: 5 labels:
6 app: frontend 6 app: frontend
7 - tier: frontend 7 + name: frontend
8 spec: 8 spec:
9 selector: 9 selector:
10 matchLabels: 10 matchLabels:
......
...@@ -8,4 +8,5 @@ spec: ...@@ -8,4 +8,5 @@ spec:
8 - port: 3000 8 - port: 3000
9 targetPort: 3000 9 targetPort: 3000
10 selector: 10 selector:
11 + name: frontend
11 app: frontend 12 app: frontend
......
...@@ -11,7 +11,7 @@ function createApolloClient() { ...@@ -11,7 +11,7 @@ function createApolloClient() {
11 return new ApolloClient({ 11 return new ApolloClient({
12 ssrMode: typeof window === "undefined", 12 ssrMode: typeof window === "undefined",
13 link: new HttpLink({ 13 link: new HttpLink({
14 - uri: "http://backend:5000/graphql", // Server URL (must be absolute) 14 + uri: "http://localhost:5000/graphql", // Server URL (must be absolute)
15 credentials: "same-origin", // Additional fetch() options like `credentials` or `headers` 15 credentials: "same-origin", // Additional fetch() options like `credentials` or `headers`
16 }), 16 }),
17 cache: new InMemoryCache({ 17 cache: new InMemoryCache({
......