-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-container-pod.yaml
60 lines (60 loc) · 1.38 KB
/
init-container-pod.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
51
52
53
54
55
56
57
58
59
60
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: init-container-pod
name: init-container-pod
spec:
replicas: 1
selector:
matchLabels:
app: init-container-pod
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 50%
type: RollingUpdate
template:
metadata:
labels:
app: init-container-pod
spec:
initContainers:
- name: init-container-55mi-mem
image: litmuschaos/stress-ng
args:
- --vm-bytes=1G
- --vm=1
- --timeout=3m
imagePullPolicy: IfNotPresent
securityContext:
runAsNonRoot: false
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop: ["ALL"]
resources:
requests:
cpu: 55m
memory: 55Mi
limits:
cpu: 55m
memory: 55Mi
containers:
- name: after-init-container
image: nginxinc/nginx-unprivileged:stable-alpine
resources:
requests:
cpu: 10m
memory: 10Mi
limits:
cpu: 10m
memory: 10Mi
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop: ["ALL"]