forked from try-bridgecrew/codegoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog4j.yaml
More file actions
47 lines (47 loc) · 1011 Bytes
/
log4j.yaml
File metadata and controls
47 lines (47 loc) · 1011 Bytes
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
apiVersion: v1
kind: Pod
metadata:
name: privileged-pod
namespace: my-namespace
spec:
automountServiceAccountToken: false
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: bad-pod
image: alpine:3.16.3
imagePullPolicy: Always
resources:
limits:
memory: "128Mi"
cpu: "0.5"
requests:
memory: "64Mi"
cpu: "0.5"
livenessProbe:
httpGet:
path: /index.html
port: 80
initialDelaySeconds: 15
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
securityContext:
privileged: true
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 20000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readinessProbe:
httpGet:
path: /index.html
port: 80
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
successThreshold: 1
failureThreshold: 3