Skip to content

Commit

Permalink
Merge pull request #27 from subodh30/cloud_files
Browse files Browse the repository at this point in the history
Cloud files
  • Loading branch information
ameyagv authored Dec 4, 2022
2 parents 857997e + cb2d8c4 commit 4ec4a1e
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Deployment/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# syntax=docker/dockerfile:1

FROM python:3.8-slim-buster

WORKDIR /job-analyzer

COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt

COPY . .

CMD [ "python3", "-m" , "flask","--app=src.app", "run", "--host=0.0.0.0"]

#docker run -d -p 5000:5000 job-analyzer
19 changes: 19 additions & 0 deletions Deployment/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: job-analyzer-deployment
spec:
selector:
matchLabels:
app: job-analyzer
replicas: 3
template:
metadata:
labels:
app: job-analyzer
spec:
containers:
- name: job-analyzer
image: job-analyzer
ports:
- containerPort: 5000
15 changes: 15 additions & 0 deletions Deployment/route.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: job-analyzer-ingress
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
rules:
- host: job-analyzer.se22.com/
http:
paths:
backend:
serviceName: job-analyzer-service
servicePort: http
11 changes: 11 additions & 0 deletions Deployment/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: job-analyzer-service
spec:
ports:
- port: 5000
targetPort: 8080
name: http
selector:
app: job-analyzer

0 comments on commit 4ec4a1e

Please sign in to comment.