-
Notifications
You must be signed in to change notification settings - Fork 0
/
hostnet-ds.yaml
42 lines (42 loc) · 1.08 KB
/
hostnet-ds.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
# @sridhargaddam
# this script spawns a daemonSet pod in a k8s cluster which can be used for troubleshooting
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: host-net-pod
namespace: submariner-operator
spec:
selector:
matchLabels:
app: host-net-pod
template:
metadata:
labels:
app: host-net-pod
spec:
tolerations:
- operator: Exists
containers:
- name: host-net-pod
#image: nicolaka/netshoot
image: quay.io/sridhargaddam/netshoot:latest
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: true
capabilities:
add:
- net_admin
drop:
- all
privileged: true
readOnlyRootFilesystem: false
runAsNonRoot: false
command: ["/bin/sh", "-c"]
args:
- sleep infinity
restartPolicy: Always
securityContext: {}
serviceAccount: submariner-routeagent
serviceAccountName: submariner-routeagent
hostNetwork: true