k8s给pod添加hosts
https://www.cnblogs.com/route/p/16119323.html
https://blog.csdn.net/yjk13703623757/article/details/108071067
kubectl exec invoice-gateway-79964d9c4f-2vcrx -n invoice-management -- cat /etc/hosts
使用shell脚本在/ etc / hosts文件中追加一行 https://www.codenong.com/19339248/
echo "172.16.37.240 bam.portshanghai.com.cn" >> /etc/hosts