title: Running script from Linux shell inside a Kubernetes pod
body: <p>Team,
  I need to execute a shell script that is within a kubernetes pod. However the call needs to come from outside the pod. Below is the script for your reference:</p>
  <p><code>echo 'Enter Namespace: '; read namespace; echo $namespace;</code></p>
  <p><code>kubectl exec -it `kubectl get po -n $namespace|grep -i podName|awk '{print $1}'` -n $namespace --- {scriptWhichNeedToExecute.sh}</code></p>
  <p>Can anyone suggest on how to do this?`</p>