-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
54 lines (54 loc) · 1.12 KB
/
deployment.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: demoapp
spec:
selector:
matchLabels:
app: demoapp
replicas: 1
template:
metadata:
labels:
app: demoapp
spec:
containers:
- args:
- --vm
- "1"
- --vm-bytes
- 128M
- -c
- "1"
- --vm-hang
- "1"
command:
- stress
name: demoapp
image: mtr.devops.telekom.de/caas/stress:latest
resources:
requests:
cpu: 1000m
memory: 256Mi
limits:
cpu: 1000m
memory: 256Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsUser: 1000
runAsGroup: 1000
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
restartPolicy: Always
securityContext:
fsGroup: 1000
supplementalGroups:
- 1000
terminationGracePeriodSeconds: 1