Skip to content

Instantly share code, notes, and snippets.

@adamancini
Created October 1, 2020 14:13
Show Gist options
  • Save adamancini/6f157d54c627a3fc9f1f79204685c2dc to your computer and use it in GitHub Desktop.
Save adamancini/6f157d54c627a3fc9f1f79204685c2dc to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: netshoot
namespace: guestbook
labels:
k8s-app: netshoot
spec:
selector:
matchLabels:
name: netshoot
template:
metadata:
labels:
name: netshoot
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: netshoot
image: nicolaka/netshoot:latest
env:
- name: TIME
value: "3600"
command: ["/bin/sh"]
args: ["-c", "sleep $(TIME)"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment