Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save taylanisikdemir/616a53aaedef135b3367a909a3b4f6c4 to your computer and use it in GitHub Desktop.
Save taylanisikdemir/616a53aaedef135b3367a909a3b4f6c4 to your computer and use it in GitHub Desktop.
# Save this file as toolbox.yml and run
# kubectl apply -f toolbox.yml
# If edgedelta namespace doesn't exist either change the namespace (at line 11) or create namespace:
# kubectl create namespace edgedelta
#
# kubectl exec -it toolbox -n edgedelta -- /bin/sh
# curl -X GET "https://www.google.com" -x <proxy endpoint>
apiVersion: v1
kind: Pod
metadata:
name: toolbox
namespace: edgedelta
spec:
containers:
- name: toolbox
image: docker.io/edgedelta/tool
args:
- /bin/sh
- -c
- >
i=0;
while true;
do
echo "$i: $(date)"
echo "$(date) INFO $i"
i=$((i+1));
sleep 1000;
done
terminationGracePeriodSeconds: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment