Type kfp
followed by the name of your namespace to loging and access the shell bash from a running instance in Kubernetes.
kfp production
kfp qa
kfp () { | |
NAMESPACE=$1 | |
POD=$(kubectl get pods -n $NAMESPACE | awk -F ' ' 'NR==2 { print $1 }') | |
kubectl exec -ti -n $NAMESPACE $POD bash | |
} |