-
Notifications
You must be signed in to change notification settings - Fork 135
/
expected.txt
90 lines (90 loc) · 1.79 KB
/
expected.txt
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx1
spec:
replicas: 3
selector:
matchLabels:
app: nginx1
template:
metadata:
labels:
app: nginx1
annotations:
sidecar.istio.io/proxyCPU: 0m
sidecar.istio.io/proxyMemory: 0M
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx2-without-resources
spec:
replicas: 1
selector:
matchLabels:
app: nginx2
template:
metadata:
labels:
app: nginx2
annotations:
sidecar.istio.io/proxyCPU: 0m
sidecar.istio.io/proxyMemory: 0M
spec:
initContainers:
- name: setup
image: ubuntu
command:
- /bin/bash
- -c
- echo 1
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ngninx3
spec:
selector:
matchLabels:
app: nginx3
serviceName: nginx
template:
metadata:
labels:
app: nginx3
annotations:
sidecar.istio.io/proxyCPU: 0m
sidecar.istio.io/proxyMemory: 0M
spec:
terminationGracePeriodSeconds: 10
containers:
- name: nginx
image: k8s.gcr.io/nginx-slim:0.8
ports:
- containerPort: 80
name: web
volumeMounts:
- name: www
mountPath: /usr/share/nginx/html
volumeClaimTemplates:
- metadata:
name: www
spec:
accessModes:
- ReadWriteOnce
storageClassName: my-storage-class
resources:
requests:
storage: 1Gi