Commit bc1e49e5 authored by Alexander Lercher's avatar Alexander Lercher

Semantic Linking: updated deployment files

parent c8376756
...@@ -7,11 +7,13 @@ ENV https_proxy http://proxy.uni-klu.ac.at:3128/ ...@@ -7,11 +7,13 @@ ENV https_proxy http://proxy.uni-klu.ac.at:3128/
RUN apt-get update RUN apt-get update
RUN pip install flask RUN pip install flask
RUN pip install connexion[swagger-ui] RUN pip install connexion[swagger-ui]
RUN pip install pika
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY data-hub/semantic-linking-microservice/app/ /app/ COPY data-hub/semantic-linking-microservice/app/ /app/
COPY modules/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: semantic-linking
spec:
type: LoadBalancer
externalIPs:
- 143.205.173.36
selector:
app: semantic-linking
ports:
- name: http
port: 80
targetPort: 5000
nodePort: 30101
protocol: TCP
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: semantic-linking name: semantic-linking
spec: spec:
replicas: 2 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: semantic-linking app: semantic-linking
......
apiVersion: v1
kind: Service
metadata:
name: semantic-linking
spec:
type: LoadBalancer
externalIPs:
- 143.205.173.36
selector:
app: semantic-linking
ports:
- name: http
port: 80
targetPort: 5000
nodePort: 30101
protocol: TCP
\ No newline at end of file
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