Change agent.sh to work with K8s