Kubernetes icon indicating copy to clipboard operation
Kubernetes copied to clipboard

关于 Pod 获取 Kubernetes API 问题

Open antonchen opened this issue 1 year ago • 0 comments

在部署 calico 和 coredns 时 Pod 都会请求 api server,但它默认请求 service 的地址如:https://198.18.0.1:443/version,calico 通过设置环境变量解决了,coredns 设置 api server 后报证书错误,在部署文档中未见相关说明。

  1. Pod 中的 api server 地址默认再哪里存储?
  2. coredns 如何忽略证书错误或配置 CA?

EDIT: 理解有问题刚搞明白,请求 https://198.18.0.1:443/version 是正常的,但是为什么这个 service 无法访问不知道怎么排查。

antonchen avatar Mar 25 '23 08:03 antonchen