From 446c3599ba6af76b3710e902a6418432acd0fed2 Mon Sep 17 00:00:00 2001 From: ada mancini Date: Thu, 31 Oct 2024 07:29:27 -0400 Subject: [PATCH] deploy netshoot as a daemonset (#105) * deploy netshoot as a daemonset * fix whitespace * move plain manifests to manifests/ --- manifests/netshoot-daemonset.yaml | 58 +++++++++++++++++++ .../netshoot-pod.yaml | 0 2 files changed, 58 insertions(+) create mode 100644 manifests/netshoot-daemonset.yaml rename netshoot-pod.yaml => manifests/netshoot-pod.yaml (100%) diff --git a/manifests/netshoot-daemonset.yaml b/manifests/netshoot-daemonset.yaml new file mode 100644 index 0000000..e810004 --- /dev/null +++ b/manifests/netshoot-daemonset.yaml @@ -0,0 +1,58 @@ +--- +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 + containers: + - name: netshoot + image: "docker.io/nicolaka/netshoot" + imagePullPolicy: Always + securityContext: + privileged: true + tty: true + stdin: true diff --git a/netshoot-pod.yaml b/manifests/netshoot-pod.yaml similarity index 100% rename from netshoot-pod.yaml rename to manifests/netshoot-pod.yaml