From d4913aacbfa6c653c10a78c2c1c776542f0eb521 Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Sat, 24 Aug 2024 19:23:35 +0300 Subject: [PATCH] add netshoot container to debug network issues --- default/netshoot.yaml | 44 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 default/netshoot.yaml diff --git a/default/netshoot.yaml b/default/netshoot.yaml new file mode 100644 index 0000000..c5e9d45 --- /dev/null +++ b/default/netshoot.yaml @@ -0,0 +1,44 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: netshoot +spec: + replicas: 1 + selector: + matchLabels: + app: netshoot + template: + metadata: + creationTimestamp: null + labels: + app: netshoot + spec: + containers: + - name: netshoot + image: nicolaka/netshoot + command: + - /bin/bash + args: + - '-c' + - while true; do ping localhost; sleep 60;done + resources: {} + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + imagePullPolicy: Always + securityContext: + capabilities: + add: + - NET_ADMIN + - NET_RAW + restartPolicy: Always + terminationGracePeriodSeconds: 30 + dnsPolicy: ClusterFirst + securityContext: {} + schedulerName: default-scheduler + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 25% + maxSurge: 25% + revisionHistoryLimit: 10 + progressDeadlineSeconds: 600