We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc7f4e9 commit fdbe571Copy full SHA for fdbe571
2 files changed
app/Dockerfile
@@ -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
@@ -13,11 +13,14 @@ spec:
13
14
15
---
16
-apiVersion: apps/v1beta1
+apiVersion: apps/v1
17
kind: Deployment
18
metadata:
19
name: hello-python
20
spec:
21
+ selector:
22
+ matchLabels:
23
+ app: hello-python
24
replicas: 4
25
template:
26
0 commit comments