【发布时间】:2019-07-22 12:47:53
【问题描述】:
在 EKS (Kubernetes 1.11.5) 中创建了一个具有多个节点组的集群,但是我注意到在 extension-apiserver-authentication 配置映射中缺少 client-ca-file 键。
我认为这是由于 Kubernetes API 服务的启动方式造成的。有没有其他人遇到过这个问题?
我在部署使用 GET https://10.100.0.1:443/api/v1/namespaces/kube-system/configmaps/extension-apiserver-authentication 查询 api 服务器的证书管理器时遇到了这个问题。
在 GKE 中这不是问题,因为 extension-apiserver-authentication configmap 已经包含 client-ca-file。
extension-apiserver-authentication AWS 中的配置映射,
apiVersion: v1
data:
requestheader-allowed-names: '["front-proxy-client"]'
requestheader-client-ca-file: |
<certificate file>
requestheader-extra-headers-prefix: '["X-Remote-Extra-"]'
requestheader-group-headers: '["X-Remote-Group"]'
requestheader-username-headers: '["X-Remote-User"]'
kind: ConfigMap
metadata:
creationTimestamp: 2019-01-14T04:56:51Z
name: extension-apiserver-authentication
namespace: kube-system
resourceVersion: "39"
selfLink: /api/v1/namespaces/kube-system/configmaps/extension-apiserver-authentication
uid: ce2b6f64-17b8-11e9-a6dd-021a269d3ce8
但是在 GKE 中,
apiVersion: v1
data:
client-ca-file: |
<client certificate file>
requestheader-allowed-names: '["aggregator"]'
requestheader-client-ca-file: |
<certificate file>
requestheader-extra-headers-prefix: '["X-Remote-Extra-"]'
requestheader-group-headers: '["X-Remote-Group"]'
requestheader-username-headers: '["X-Remote-User"]'
kind: ConfigMap
metadata:
creationTimestamp: 2018-05-24T12:06:33Z
name: extension-apiserver-authentication
namespace: kube-system
resourceVersion: "32"
selfLink: /api/v1/namespaces/kube-system/configmaps/extension-apiserver-authentication
uid: e6c0c431-5f4a-11e8-8d8c-42010a9a0191
【问题讨论】:
标签: authentication kubernetes amazon-eks