forked from lftraining/LFS262-secops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dso-demo-deployment.yaml
50 lines (50 loc) · 1.1 KB
/
dso-demo-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
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: dso-demo
name: dso-demo
annotations:
seccomp.security.alpha.kubernetes.io/pod: "runtime/default"
spec:
replicas: 1
selector:
matchLabels:
app: dso-demo
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: dso-demo
spec:
automountServiceAccountToken: false
serviceAccountName: dso-demo
containers:
- image: gouravshah/dso-demo
name: dso-demo
ports:
- containerPort: 8080
securityContext:
capabilities:
drop:
- ALL
privileged: false
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 11000
readOnlyRootFilesystem: true
resources:
requests:
cpu: "50m"
memory: "128Mi"
limits:
cpu: "250m"
memory: "256Mi"
volumeMounts:
- name: tmp
mountPath: /tmp
volumes:
- name: tmp
emptyDir: {}