Skip to content

Commit

Permalink
Add k8s deployment for rtn-k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
faiyaz26 committed Aug 27, 2018
1 parent 65813fb commit c9b0f58
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:8
WORKDIR /usr/src/app
ADD package.json .
ADD config.js .
ADD server.js .
ADD public/ .

RUN npm install


ENV ENV_NAME prod
ENV REDIS_URL redis

EXPOSE 3000

ENTRYPOINT ["node", "server.js"]
21 changes: 21 additions & 0 deletions k8s/deployments.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rtn-k8s-deployment
labels:
app: rtn-k8s
spec:
replicas: 3
selector:
matchLabels:
app: rtn-k8s
template:
metadata:
labels:
app: rtn-k8s
spec:
containers:
- name: rtn-k8s
image: gcr.io/rtn-k8s/rtn-k8s:1.0
ports:
- containerPort: 3000

0 comments on commit c9b0f58

Please sign in to comment.