kubernetes/kubernetes

Kubernetes is an open source system for managing containerized applications across multiple hosts. It provides basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If your company wants to help shape the evolution of technologies that are container-packaged, dynamically scheduled, and microservices-oriented, consider joining the CNCF. For details about who’s involved and how Kubernetes plays a role, read the CNCF announcement.

To start using Kubernetes
See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To use Kubernetes code as a library in other applications, see the list of published components. Use of the k8s.io/kubernetes module or k8s.io/kubernetes/… packages as libraries is not supported.

To start developing Kubernetes
The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
mkdir -p $GOPATH/src/k8s.io
cd $GOPATH/src/k8s.io
git clone https://github.com/kubernetes/kubernetes
cd kubernetes
make
You have a working Docker environment.
git clone https://github.com/kubernetes/kubernetes
cd kubernetes
make quick-release
For the full story, head over to the developer’s documentation.

Support
If you need support, start with the troubleshooting guide, and work your way through the process that we’ve outlined.

That said, if you have questions, reach out to us one way or another.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
问题: /etc/kubernetes/admin.conf 是什么文件?为什么会出现问题? 回答: /etc/kubernetes/admin.conf 是用于管理员访问 Kubernetes 集群的配置文件。在 Kubernetes 中,当前非root用户没有足够的权限来读取该文件,因此会出现问题。通常情况下,需要使用 root 用户或具有足够权限的用户才能访问该文件。\[1\] 如果出现问题,可能是因为主节点更换了证书,导致从节点使用 kubectl get pods 命令时报错 "Config not found: /etc/kubernetes/admin.conf"。解决方法有几种: 1. 替换 config 文件:将主节点的 ".kube/config" 文件复制到从节点相应位置。 2. 复制 admin.conf 文件:从主节点复制 admin.conf 文件到从节点,因为报错是找不到 admin.conf 文件。 3. 新增环境变量:执行命令 "echo 'export KUBECONFIG=/etc/kubernetes/admin.conf' >> ~/.bash_profile" 和 "source ~/.bash_profile",将环境变量添加到配置文件中。\[2\] 另外,如果主节点已经初始化,但从节点无法使用 kubectl get nodes 等命令,出现报错 "Unable to connect to the server: x509: certificate signed by unknown authority",可能是因为从节点缺少 admin.conf 文件。解决方法是将主节点的 admin.conf 文件复制到从节点对应目录下,并执行相应的命令来设置环境变量。\[3\] #### 引用[.reference_title] - *1* [k8s非root用户报错:error loading config file “/etc/kubernetes/admin.conf“: open /etc/kubernetes/...](https://blog.csdn.net/qq_41904451/article/details/129968518)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [k8s主节点更换证书后,从节点使用kubectl get pods命令报Config not found: /etc/kubernetes/admin.conf](https://blog.csdn.net/lisongyue123/article/details/114652227)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [新手安装kubernetes可能出现的N种错误以及解决方法](https://blog.csdn.net/u010569419/article/details/109713226)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值