当前位置:网站首页>Using kubeconfig files to organize cluster access

Using kubeconfig files to organize cluster access

2022-06-24 07:50:00 Old tile next door

Use kubeconfig File to organize information about the cluster 、 user 、 Namespace and identity authentication mechanism . kubectl  Command line tools use kubeconfig File to find the information needed to select the cluster , And with the cluster API The server communicates .

explain :  The file used to configure cluster access is called “kubeconfig file ”. This is a common way to reference configuration files , It does not mean that there is a name  kubeconfig  The file of

Warning :  Use only those from reliable sources kubeconfig file . Use special kubeconfig Files can cause malicious code execution or file exposure . If you must use untrusted kubeconfig file , Please check first shell Scrutinize it like a script .

By default ,kubectl  stay  $HOME/.kube  Find the name of  config  The file of . You can set up  KUBECONFIG  Environment variables or settings  --kubeconfig Parameter to specify other kubeconfig file .

About creating and specifying kubeconfig Step by step instructions for documents , see also   Configure access to multiple clusters .

Support multiple clusters 、 User and identity authentication mechanism

Suppose you have multiple clusters , And your users and components are authenticated in many ways . such as :

  • Running kubelet
原网站

版权声明
本文为[Old tile next door]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240347150404.html