I attempted to create a cron job that restarts a k8s pod (nevermind why!). I get the error kubectl: not found. It apparently doesn't know about kubernetes.
Cron is something like:
*/10 * * * * jlocal ~/restart_pod.sh
#!/bin/bash kubectl delete deployment <deployment-name> kubectl create -f /data/project/<tool>/deployment.yaml
and is executable.