video-iac/scripts/dump-webrtc-podname

9 lines
239 B
Bash
Executable File

#!/bin/bash
set -eu -o pipefail
ENV=$1 # stg or prd
KUBECONFIG=~/Downloads/$ENV-video-cluster-kubeconfig.yaml
POD=`kubectl --kubeconfig $KUBECONFIG --namespace webrtc-be get pod --no-headers -o custom-columns=":metadata.name"`
echo $POD