[k8s] add script to access router pod

This commit is contained in:
Nico Schottelius 2023-06-25 20:57:20 +02:00
parent f3187d110a
commit 40c37ae681
1 changed files with 10 additions and 0 deletions

10
k8s/bird-router.sh Executable file
View File

@ -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}') "$@"