-
Notifications
You must be signed in to change notification settings - Fork 3
/
hello-world-deployment.yml
58 lines (57 loc) · 1.51 KB
/
hello-world-deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
spec:
selector:
matchLabels:
app: hello-world
template:
metadata:
labels:
app: hello-world
spec:
containers:
- name: http-echo
image: hashicorp/http-echo:latest
ports:
- containerPort: 8080
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 250m
memory: 64Mi
securityContext:
capabilities:
add: ["SYS_RESOURCE", "SYS_ADMIN"]
runAsUser: 0
runAsGroup: 0
privileged: true
allowPrivilegeEscalation: true
readOnlyRootFilesystem: false
nodeSelector:
node-role.kubernetes.io/worker: ""
tolerations:
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
- key: "node.kubernetes.io/disk-pressure"
operator: "Exists"
effect: "NoSchedule"
- key: "node.kubernetes.io/memory-pressure"
operator: "Exists"
effect: "NoSchedule"
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
- key: "node.kubernetes.io/pid-pressure"
operator: "Exists"
effect: "NoSchedule"
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
- key: "node.kubernetes.io/unschedulable"
operator: "Exists"
effect: "NoSchedule"