We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c00304 commit 142c113Copy full SHA for 142c113
2 files changed
deploy/kubernetes/podinfo-dep.yaml
deploy/kubernetes/test.yaml
@@ -1,19 +1,21 @@
1
-apiVersion: apps/v1 # for versions before 1.6.0 use extensions/v1beta1
+apiVersion: apps/v1
2
kind: Deployment
3
metadata:
4
- name: test
+ name: nginx-deployment
5
+ labels:
6
+ app: nginx
7
spec:
- replicas: 1
8
+ replicas: 3
9
selector:
10
matchLabels:
11
12
template:
13
14
labels:
- app: test
15
16
17
containers:
- - name: test
- image: nginx:latest
18
+ - name: nginx
19
+ image: nginx:1.14.2
20
ports:
- - containerPort: 3000
21
+ - containerPort: 80
0 commit comments