如何共享.kube/config? [英] How to share .kube/config?

查看:43
本文介绍了如何共享.kube/config?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有多个管理员访问k8s集群. 建议共享配置文件的方式是什么?

There are multiple admins who accesses k8s clusters. What is the recommended way to share the config file?

我知道,

kubectl config view --minify

但是此命令删除了认证部分.

but certification part is REDACTED by this command.

推荐答案

您可以添加--flatten标志,该标志在

You can add the --flatten flag, which is described in the document to "flatten the resulting kubeconfig file into self contained output (useful for creating portable kubeconfig files)"

这篇关于如何共享.kube/config?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆