-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathk8s-daemonset-example.yml
More file actions
54 lines (54 loc) · 1.28 KB
/
k8s-daemonset-example.yml
File metadata and controls
54 lines (54 loc) · 1.28 KB
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
---
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: phunter
labels:
app: phunter
spec:
selector:
matchLabels:
app: phunter
template:
metadata:
labels:
app: phunter
spec:
hostPID: true
restartPolicy: Always
terminationGracePeriodSeconds: 120
containers:
- name: phunter
env:
- name: PHUNTER_CONFIG_FILE
value: "/config/config-example.yml"
- name: PHUNTER_LOG_LEVEL
value: "INFO"
livenessProbe:
httpGet:
path: /healthz
port: 9000
initialDelaySeconds: 5
periodSeconds: 5
resources:
limits:
memory: 256Mi
securityContext:
capabilities:
add: ["SYS_PTRACE"]
ports:
- containerPort: 9000
imagePullPolicy: Always
image: phunter:latest
volumeMounts:
- name: phunter-config
mountPath: /config
- name: dockersocket
mountPath: /var/run/docker.sock
volumes:
- name: phunter-config
configMap:
name: phunter-config
- name: dockersocket
hostPath:
path: /var/run/docker.sock