Last active
July 23, 2020 03:26
-
-
Save taylanisikdemir/616a53aaedef135b3367a909a3b4f6c4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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