Skip to content

Commit fdbe571

Browse files
committed
modified deployment for non-beta version
1 parent dc7f4e9 commit fdbe571

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

app/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3.7
2+
3+
RUN mkdir /app
4+
WORKDIR /app
5+
ADD . /app/
6+
RUN pip install -r requirements.txt
7+
8+
EXPOSE 5000
9+
CMD ["python", "/app/main.py"]

kubernetes/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ spec:
1313

1414

1515
---
16-
apiVersion: apps/v1beta1
16+
apiVersion: apps/v1
1717
kind: Deployment
1818
metadata:
1919
name: hello-python
2020
spec:
21+
selector:
22+
matchLabels:
23+
app: hello-python
2124
replicas: 4
2225
template:
2326
metadata:

0 commit comments

Comments
 (0)