Skip to content

Instantly share code, notes, and snippets.

@adamancini
Last active October 28, 2024 16:26
Show Gist options
  • Save adamancini/6abaf04bca0f81bdcbfd1b61bcdc5e0f to your computer and use it in GitHub Desktop.
Save adamancini/6abaf04bca0f81bdcbfd1b61bcdc5e0f to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: netshoot
labels:
app: netshoot
spec:
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: netshoot
template:
metadata:
labels:
app: netshoot
spec:
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/disk-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/memory-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/pid-pressure
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/unschedulable
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/network-unavailable
operator: Exists
containers:
- name: netshoot
image: "docker.io/nicolaka/netshoot"
imagePullPolicy: Always
securityContext:
privileged: true
tty: true
stdin: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment