I am trying to pass hostdetails to k8s podd .and use it in shell script which is called by cronjob. Here is example ::
env:
- name: ranger_host
value: 13455:
and i hv shell script say eg runcron.sh
python2.7 alertMetric.py $ranger_host .
But ranger_host is not coming inside thi shell script .Its really hard time to debug . runcron.sh is called in cronjob as
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
* * * * * /bin/sh /runcron.sh
and when I list env its deisplayin value inside podd