摘要: 我们知道k8s访问内部域名可以使用 pod名.namespace.svc.cluster.local。但有时需要往pod增加自定义的host解析。有一个参数可以支持,在deployment.spec.spec中添加: hostAliases: - hostnames: - xxxx.xunlei.c 阅读全文
posted @ 2021-03-10 11:47 Normanlin 阅读(1244) 评论(0) 推荐(0) 编辑