Changeset 2:29383407e3c1 default default/master tip master
Updated plugins
author | unexist |
---|---|
date | Wed, 01 Sep 2021 15:41:26 +0200 |
parents | 8c5ab4e82018 |
children | |
files | bin/kubectl-debug_shell bin/kubectl-kafka_shell |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/kubectl-debug_shell Wed Sep 01 13:52:38 2021 +0200 +++ b/bin/kubectl-debug_shell Wed Sep 01 15:41:26 2021 +0200 @@ -1,5 +1,7 @@ #!/usr/bin/env bash IMAGE=${1:-praqma/network-multitool:latest} +NAME=${2:-debug-shell} -kubectl run -it --rm --tty --restart=Never --image=${IMAGE} debug-shell -- bash +kubectl delete pod ${NAME} +kubectl run -it --rm --tty --restart=Never --image=${IMAGE} ${NAME} -- bash
--- a/bin/kubectl-kafka_shell Wed Sep 01 13:52:38 2021 +0200 +++ b/bin/kubectl-kafka_shell Wed Sep 01 15:41:26 2021 +0200 @@ -1,5 +1,7 @@ #!/usr/bin/env bash IMAGE=${1:-confluentinc/cp-kafkacat:latest} +NAME=${2:-kafka-shell} -kubectl run -it --rm --tty --restart=Never --image=${IMAGE} kafka-shell -- bash +kubectl delete pod ${NAME} +kubectl run -it --rm --tty --restart=Never --image=${IMAGE} ${NAME} -- bash