当前位置:网站首页>使用 kubeconfig 文件组织集群访问
使用 kubeconfig 文件组织集群访问
2022-06-24 06:47:00 【隔壁老瓦】
使用 kubeconfig 文件来组织有关集群、用户、命名空间和身份认证机制的信息。 kubectl 命令行工具使用 kubeconfig 文件来查找选择集群所需的信息,并与集群的 API 服务器进行通信。
说明: 用于配置集群访问的文件称为“kubeconfig 文件”。 这是引用配置文件的通用方法,并不意味着有一个名为 kubeconfig 的文件
警告: 只使用来源可靠的 kubeconfig 文件。使用特制的 kubeconfig 文件可能会导致恶意代码执行或文件暴露。 如果必须使用不受信任的 kubeconfig 文件,请首先像检查 shell 脚本一样仔细检查它。
默认情况下,kubectl 在 $HOME/.kube 目录下查找名为 config 的文件。 你可以通过设置 KUBECONFIG 环境变量或者设置 --kubeconfig参数来指定其他 kubeconfig 文件。
有关创建和指定 kubeconfig 文件的分步说明,请参阅 配置对多集群的访问。
支持多集群、用户和身份认证机制
假设你有多个集群,并且你的用户和组件以多种方式进行身份认证。比如:
- 正在运行的 kubelet
边栏推荐
- Étalonnage de la caméra (objectif et principe d'étalonnage)
- Black box and white box models for interpretable AI
- . No main manifest attribute in jar
- MySQL case: analysis of full-text indexing
- 云开发谁是卧底小程序源码
- 2022年PMP项目管理考试敏捷知识点(1)
- 日期、时间库使用备注
- 图形技术之管线概念
- 报错“Computation failed in `stat_summary_hex()`”
- Terminal network in VPN client connection settings of router
猜你喜欢
随机推荐
What industries and scenarios can the easynvr/easygbs/easycvr platform developed by tsingsee green rhino video be used in?
tuple(元组)备注
Reconfiguration of nebula integration testing framework based on BDD theory (Part 2)
LeetCode 515 在每个数行中找最大值[BFS 二叉树] HERODING的LeetCode之路
自动化测试的生命周期是什么?
Common coding and encryption in penetration testing
Cloud development who is the source code of undercover applet
运行npm run eject报错解决方法
【NILM】非入侵式负荷分解模块nilmtk安装教程
timer使用备注
相機標定(標定目的、原理)
[learn FPGA programming from scratch -42]: Vision - technological evolution of chip design in the "post Moorish era" - 1 - current situation
Pyhton crawls to Adu (Li Yifeng) Weibo comments
科一易错点
Knowledge points of 2022 system integration project management engineer examination: ITSS information technology service
Camera calibration (calibration purpose and principle)
本地备份和还原 SQL Server 数据库
解决 These dependencies were not found: * core-js/modules/es6.array.fill in xxx 之类的问题
Oracle-高级SQL限定查询
Shader 常用函数









