장재혁

Merge branch 'kubeTest' into 'master'

Kube test



See merge request !3
......@@ -4,7 +4,6 @@ metadata:
name: backend
labels:
app: backend
tier: backend
spec:
selector:
matchLabels:
......
apiVersion: v1
kind: Service
metadata:
labels:
app: backend
name: backend
spec:
type: ClusterIP
......@@ -8,4 +10,5 @@ spec:
- port: 5000
targetPort: 5000
selector:
name: backend
app: backend
\ No newline at end of file
......
......@@ -4,7 +4,7 @@ metadata:
name: frontend
labels:
app: frontend
tier: frontend
name: frontend
spec:
selector:
matchLabels:
......@@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: frontend
image: khujay15/next-docker-test
image: khujay15/next-docker-test:latest
ports:
- containerPort: 3000
name: frontend
\ No newline at end of file
......
......@@ -11,7 +11,7 @@ ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN apt-get install -y git
RUN npm install -g yarn
RUN mkdir /web
RUN git clone --depth=1 http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215/ /web
RUN git clone -b kubeTest --single-branch --depth=1 http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215/ /web
RUN cd /web/project;yarn install
EXPOSE 3000
RUN cd /web/project;yarn build:web
......
......@@ -8,4 +8,5 @@ spec:
- port: 3000
targetPort: 3000
selector:
name: frontend
app: frontend
......