-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhostnet.spec
More file actions
60 lines (60 loc) · 1.55 KB
/
hostnet.spec
File metadata and controls
60 lines (60 loc) · 1.55 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
55
56
57
58
59
60
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: toolbox-agent-hostnetwork
spec:
selector:
matchLabels:
app: toolbox
replicas: 1 # tells deployment to run 2 pods matching the template
template:
metadata:
labels:
app: toolbox
spec:
hostNetwork: true
containers:
- name: toolbox-agent-hostnetwork
image: matmerr/toolbox:v10
env:
- name: HTTP_PORT
value: "8083"
securityContext:
privileged: true
volumeMounts:
- name: cni-bin
mountPath: /opt/cni/bin
- name: xtables-lock
mountPath: /run/xtables.lock
- name: log
mountPath: /var/log
- name: varrun
mountPath: /tmp/var/run/
- name: protocols
mountPath: /tmp/etc/protocols
- name: cnietc
mountPath: /tmp/etc/cni
volumes:
- name: cni-bin
hostPath:
path: /opt/cni/bin
- name: log
hostPath:
path: /var/log
type: Directory
- name: xtables-lock
hostPath:
path: /run/xtables.lock
type: File
- name: varrun
hostPath:
path: /var/run
type: Directory
- name: protocols
hostPath:
path: /etc/protocols
type: File
- name: cnietc
hostPath:
path: /etc/cni
type: Directory