장재혁

Merge branch 'kubeTest' into 'master'

Kube test



See merge request !3
...@@ -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:
...@@ -17,7 +17,7 @@ spec: ...@@ -17,7 +17,7 @@ spec:
17 spec: 17 spec:
18 containers: 18 containers:
19 - name: frontend 19 - name: frontend
20 - image: khujay15/next-docker-test 20 + image: khujay15/next-docker-test:latest
21 ports: 21 ports:
22 - containerPort: 3000 22 - containerPort: 3000
23 name: frontend 23 name: frontend
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -11,7 +11,7 @@ ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" ...@@ -11,7 +11,7 @@ ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
11 RUN apt-get install -y git 11 RUN apt-get install -y git
12 RUN npm install -g yarn 12 RUN npm install -g yarn
13 RUN mkdir /web 13 RUN mkdir /web
14 -RUN git clone --depth=1 http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215/ /web 14 +RUN git clone -b kubeTest --single-branch --depth=1 http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215/ /web
15 RUN cd /web/project;yarn install 15 RUN cd /web/project;yarn install
16 EXPOSE 3000 16 EXPOSE 3000
17 RUN cd /web/project;yarn build:web 17 RUN cd /web/project;yarn build:web
......
...@@ -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
......