前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >MountVolume.SetUp failed for volume "istio-token":failed to fetch token: the API server do

MountVolume.SetUp failed for volume "istio-token":failed to fetch token: the API server do

作者头像
院长技术
发布2022-03-10 21:17:04
1.5K0
发布2022-03-10 21:17:04
举报
文章被收录于专栏:院长运维开发院长运维开发

这里查看pod可能会发现有pod一直处于creating状态,通过describe命令可知“istio-token”找不到:

代码语言:javascript
复制
MountVolume.SetUp failed for volume "istio-token":failed to fetch token: the API server does not have TokenRequest endpoints enabled

看我们的k8s集群是否支持第三方令牌

代码语言:javascript
复制
{
  "name": "serviceaccounts/token",
  "singularName": "",
  "namespaced": true,
  "group": "authentication.k8s.io",
  "version": "v1",
  "kind": "TokenRequest",
  "verbs": [
    "create"
  ]
}

配置apiserver添加参数来支持第三方令牌(Third-party-jwt)

代码语言:javascript
复制
在/etc/kubernetes/manifests/kube-apiserver.yaml里添加:
- --service-account-signing-key-file=/etc/kubernetes/pki/sa.key
- --service-account-key-file=/etc/kubernetes/pki/sa.pub
- --service-account-issuer=api
- --service-account-api-audiences=api,vault,factors
本文参与?腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体分享计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 这里查看pod可能会发现有pod一直处于creating状态,通过describe命令可知“istio-token”找不到:
  • 看我们的k8s集群是否支持第三方令牌
  • 配置apiserver添加参数来支持第三方令牌(Third-party-jwt)
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com