-
Notifications
You must be signed in to change notification settings - Fork 0
/
new_deploy.yaml
50 lines (48 loc) · 971 Bytes
/
new_deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Simple deployment used to deploy and manage the app in nigelpoulton/getting-started-k8s:1.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-5-deploy
labels:
app: web5
spec:
replicas: 3
selector:
matchLabels:
app: web5
template:
metadata:
labels:
app: web5
spec:
terminationGracePeriodSeconds: 1
containers:
- name: hello-pod
image: nigelpoulton/getting-started-k8s:1.0
imagePullPolicy: Always
ports:
- containerPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-6-deploy
labels:
app: web6
spec:
replicas: 3
selector:
matchLabels:
app: web6
template:
metadata:
labels:
app: web6
spec:
terminationGracePeriodSeconds: 1
containers:
- name: hello-pod
image: nigelpoulton/getting-started-k8s:1.0
imagePullPolicy: Always
ports:
- containerPort: 8080