unexist.dev

Changeset 1:8c5ab4e82018

Added simple shell helper
author unexist
date Wed, 01 Sep 2021 13:52:38 +0200
parents 30183f174305
children 29383407e3c1
files bin/kubectl-debug_shell bin/kubectl-kafka_shell
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/kubectl-debug_shell	Wed Sep 01 13:52:38 2021 +0200
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+IMAGE=${1:-praqma/network-multitool:latest}
+
+kubectl run -it --rm --tty --restart=Never --image=${IMAGE} debug-shell -- bash
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/kubectl-kafka_shell	Wed Sep 01 13:52:38 2021 +0200
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+IMAGE=${1:-confluentinc/cp-kafkacat:latest}
+
+kubectl run -it --rm --tty --restart=Never --image=${IMAGE} kafka-shell -- bash