comparison bin/kurl.sh @ 815:06f1c3de040c

k8s is picky about how many dashes a deployment may have
author Jeff Hammel <k0scist@gmail.com>
date Sun, 13 Nov 2016 16:02:30 -0800
parents a56a844f6e6f
children
comparison
equal deleted inserted replaced
814:a56a844f6e6f 815:06f1c3de040c
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # run curl within a k8s cluster via kubectl 3 # run curl within a k8s cluster via kubectl
4 4
5 export KURL_DEPLOYMENT=curl-$(hostname) 5 export KURL_DEPLOYMENT=curl-$(whoami)$(date +%s)
6 kubectl run --rm ${KURL_DEPLOYMENT} --image=radial/busyboxplus:curl -i --tty 6 kubectl run --rm ${KURL_DEPLOYMENT} --image=radial/busyboxplus:curl -i --tty
7 7
8 8