Created
September 17, 2020 15:32
-
-
Save randomvariable/c05b9fd25d4b3edf039f1e1ccb2ba7b2 to your computer and use it in GitHub Desktop.
netshoot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |
securityContext: | |
runAsNonRoot: true | |
runAsUser: 1000 | |
fsGroup: 2000 | |
# if you'd like to use a secret to inject a kubeconfig, you can do it like this | |
containers: | |
- name: netshoot | |
image: "docker.io/nicolaka/netshoot" | |
imagePullPolicy: Always | |
securityContext: | |
privileged: true | |
tty: true | |
stdin: true | |
stdinOnce: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment