【问题标题】:What's the purpose of Kubernetes ServiceAccountKubernetes ServiceAccount 的目的是什么
【发布时间】:2015-10-05 23:00:31
【问题描述】:

我阅读过文档,看过示例,但我不知道为什么要在我的 pod 中添加 serviceAccount?

来自 Kubernetes (https://github.com/kubernetes/kubernetes/tree/master/examples/elasticsearch) 的“elasticsearch”示例有一个服务帐户“elasticsearch”,它授予什么?

谢谢。

【问题讨论】:

    标签: kubernetes


    【解决方案1】:

    服务帐户将身份验证凭据注入 pod 以与 Kubernetes 服务(例如 apiserver)通信。

    如果您要构建的应用程序需要检查集群中运行的 pod/服务/控制器是否具有正确的行为,这一点很重要。例如,kube2sky 容器监视服务和端点,通过连接到 Kubernetes 服务在集群内提供 DNS。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-20
      • 1970-01-01
      • 2019-06-18
      • 2018-03-13
      • 1970-01-01
      • 1970-01-01
      • 2019-11-04
      • 2022-06-16
      相关资源
      最近更新 更多