[英]How to check if Workload Identity is enabled in a Kubernetes cluster?
Pretty much the title.标题差不多。 I used
kubectl config view
but didn't see anything that would make me know whether it is enabled or not.我使用
kubectl config view
但没有看到任何可以让我知道它是否已启用的信息。 I am also using google kube.netes engine.我也在使用谷歌 kube.netes 引擎。
I found a web page with a great solution to this problem: https://medium.com/google-cloud/mapping-kube.netes-service-accounts-to-gcp-iams-using-workload-identity-b53496d543e0我找到了一个 web 页面,它很好地解决了这个问题: https://medium.com/google-cloud/mapping-kube.netes-service-accounts-to-gcp-iams-using-workload-identity-b53496d543e0
If you go to the end, they demonstrate testing WI by launching a gsutil container that you can download from google.如果你 go 到最后,他们会通过启动一个你可以从谷歌下载的 gsutil 容器来演示测试 WI。 You can then use this dockerized version of gsutil to test connectivity to buckets straight from your kube.netes infrastructure.
然后,您可以使用这个 dockerized 版本的 gsutil 来测试直接从您的 kube.netes 基础设施到存储桶的连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.