36 lines
641 B
YAML
36 lines
641 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: flask-web
|
|
namespace: botspace
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: flask-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: flask-web
|
|
spec:
|
|
containers:
|
|
- name: flask-container
|
|
image: tetianamohorian/hate-speech-bot:latest
|
|
command: ["python"]
|
|
args: ["web_app.py"]
|
|
ports:
|
|
- containerPort: 5000
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: flask-service
|
|
namespace: botspace
|
|
spec:
|
|
selector:
|
|
app: flask-web
|
|
ports:
|
|
- port: 5000
|
|
targetPort: 5000
|
|
protocol: TCP
|