k8s容器加入host解析字段
一、通过edit或path来修改
kubectl edit deploy /xxxxx. x-n cattle-system
xxxxx为你的资源对象名称
二、添加字段
三、code
hostAliases:- hostnames:- www.rancher.localip: 10.10.2.180
一、通过edit或path来修改
kubectl edit deploy /xxxxx. x-n cattle-system
xxxxx为你的资源对象名称
二、添加字段
三、code
hostAliases:- hostnames:- www.rancher.localip: 10.10.2.180