#!/bin/sh for i in $(kubectl get pods -n tracston | awk '{print $1}'); do echo "$i" kubectl exec -it $i -n tracston -- bash -c "env | grep TZ" done