Commit 1fd3a864 authored by Manuel's avatar Manuel

[reputation_calculation] updated deployment

parent 3feae01a
FROM python:3
LABEL maintainer="Alexander Lercher"
ENV http_proxy http://proxy.uni-klu.ac.at:3128/
ENV https_proxy http://proxy.uni-klu.ac.at:3128/
RUN apt-get update
RUN pip install flask
RUN pip install connexion[swagger-ui]
EXPOSE 5000
WORKDIR /app
COPY src/rest-gateway/app/requirements.txt /app/
COPY src/data-hub/reputation-calculation-microservice/app/requirements.txt /app/
RUN pip install -r requirements.txt
COPY src/rest-gateway/app/ /app/
COPY src/data-hub/reputation-calculation-microservice/app/ /app/
COPY src/modules/ /app/
RUN chmod a+x main.py
......
apiVersion: v1
kind: Service
metadata:
name: rest-gateway
name: reputation-calculation
spec:
type: LoadBalancer
selector:
app: rest-gateway
app: reputation-calculation
ports:
- name: http
port: 80
targetPort: 5000
nodePort: 30401
nodePort: 30107
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rest-gateway
name: reputation-calculation
spec:
replicas: 1
selector:
matchLabels:
app: rest-gateway
app: reputation-calculation
template:
metadata:
labels:
app: rest-gateway
app: reputation-calculation
spec:
containers:
- name: rest-gateway
image: alexx882/rest-gateway
- name: reputation-calculation
image: alexx882/reputation-calculation-microservice
ports:
- containerPort: 5000
imagePullPolicy: Always
......@@ -45,34 +45,34 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: rest-gateway-db
name: reputation-calculation-db
spec:
type: LoadBalancer
selector:
app: rest-gateway-db
app: reputation-calculation-db
ports:
- name: http
port: 27017
targetPort: 27017
nodePort: 30402
nodePort: 30109
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rest-gateway-db
name: reputation-calculation-db
spec:
replicas: 1
selector:
matchLabels:
app: rest-gateway-db
app: reputation-calculation-db
template:
metadata:
labels:
app: rest-gateway-db
app: reputation-calculation-db
spec:
containers:
- name: rest-gateway-db
- name: reputation-calculation-db
image: mongo
env:
- name: MONGO_INITDB_ROOT_USERNAME
......@@ -85,4 +85,4 @@ spec:
- mountPath: /data/db
name: dbdata
volumes:
- name: dbdata
\ No newline at end of file
- name: dbdata
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment