diff --git a/app/Dockerfile b/app/Dockerfile new file mode 100644 index 0000000..ce620c2 --- /dev/null +++ b/app/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.7 + +RUN mkdir /app +WORKDIR /app +ADD . /app/ +RUN pip install -r requirements.txt + +EXPOSE 5000 +CMD ["python", "/app/main.py"] \ No newline at end of file diff --git a/kubernetes/deployment.yaml b/kubernetes/deployment.yaml index fdaeb8e..2488f50 100644 --- a/kubernetes/deployment.yaml +++ b/kubernetes/deployment.yaml @@ -13,11 +13,14 @@ spec: --- -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: hello-python spec: + selector: + matchLabels: + app: hello-python replicas: 4 template: metadata: