From 40c37ae68161cda5b0a10b818cb24aa75e0951aa Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 25 Jun 2023 20:57:20 +0200 Subject: [PATCH] [k8s] add script to access router pod --- k8s/bird-router.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 k8s/bird-router.sh diff --git a/k8s/bird-router.sh b/k8s/bird-router.sh new file mode 100755 index 0000000..113ddea --- /dev/null +++ b/k8s/bird-router.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Nico Schottelius, 2023-06-09 +# Enter the ceph toolbox + +if [ -z "$@" ]; then + set -- -c bird -- birdc +fi +set -x + +kubectl exec -ti $(kubectl get pods -l app.kubernetes.io/component=bird -o jsonpath='{.items[*].metadata.name}') "$@"