一、通过edit或path来修改
kubectl edit deploy /xxxxx. x-n cattle-system
xxxxx为你的资源对象名称
二、添加字段

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