[k8s] add script to access router pod
This commit is contained in:
parent
f3187d110a
commit
40c37ae681
1 changed files with 10 additions and 0 deletions
10
k8s/bird-router.sh
Executable file
10
k8s/bird-router.sh
Executable 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}') "$@"
|
Loading…
Reference in a new issue