mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
11 lines
326 B
Plaintext
11 lines
326 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
if [[ $# < 1 ]]; then
|
||
|
echo "Usage: $0 [production|staging|...]"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
export ZED_KUBE_NAMESPACE=$1
|
||
|
|
||
|
pod=$(kubectl --namespace=${ZED_KUBE_NAMESPACE} get pods --selector=app=zed --output=jsonpath='{.items[*].metadata.name}')
|
||
|
exec kubectl --namespace $ZED_KUBE_NAMESPACE exec --tty --stdin $pod -- /bin/bash
|