简体   繁体   English

如何在Kubernetes的裸机安装上激活Addon?

[英]How to activate an Addon on a bare-metal installation of Kubernetes?

From the documentation : 文档中

Cluster add-ons are Services and Replication Controllers (with pods) that are shipped with the Kubernetes binaries and are considered an inherent part of the Kubernetes clusters. 集群附加组件是Kubernetes二进制文件附带的服务和复制控制器(带有Pod),被视为Kubernetes集群的固有部分。 [...] On the cluster, the add-ons are kept in /etc/kubernetes/addons on the master node, in yaml files (json is not supported at the moment). [...]在集群上,附加组件保存在主节点上的/ etc / kubernetes / addons中,并保存在yaml文件中(目前不支持json)。 [...] users are discouraged to do it on their own - they should rather wait for a new release of Kubernetes that will also contain new versions of add-ons. 不鼓励用户自己执行此操作-他们应该宁愿等待Kubernetes的新版本发布,该版本还将包含附加组件的新版本。

My kubernetes setup is running on fedeora and it has been installed via yum . 我的kubernetes安装程序在fedeora上运行,并且已通过yum安装。 The version is 版本是

Client Version: version.Info{Major:"1", Minor:"1+", GitVersion:"v1.1.0-alpha.0.2175+b6f18c7ce08714", GitCommit:"b6f18c7ce08714c8d4f6019463879a164a41750e", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"1+", GitVersion:"v1.1.0-alpha.0.2175+b6f18c7ce08714", GitCommit:"b6f18c7ce08714c8d4f6019463879a164a41750e", GitTreeState:"clean"}

Strangely, the folder /etc/kubernetes/addons/ does not exist. 奇怪的是, 文件夹/etc/kubernetes/addons/不存在。

I would like to activate the sky-dns addon. 我想激活sky-dns插件。 I have tried to read all available documentation, but it is still not clear to me: 我已经尝试阅读所有可用的文档,但是对我来说仍然不清楚:

How do I properly install and activate an addon? 如何正确安装和激活插件? Preferably so that it will receive automated updates in future? 最好是这样它将来会收到自动更新?

First, it isn't clear from the version number what your are actually running. 首先,从版本号不清楚您实际在运行什么。 Github shows a v1.1.0-alpha.1 release and a v1.1.0-alpha.0 tag but nothing named v1.1.0-alpha . Github显示了v1.1.0-alpha.1版本和v1.1.0-alpha.0标签,但没有一个名为v1.1.0-alpha标签。 Also note that neither of those releases were ever marked as "latest" or "released" meaning that they are not suitable for running in production and may contain egregious bugs (they are alpha quality after all). 还要注意,这些发行版都没有被标记为“最新”或“已发行”,这意味着它们不适合在生产环境中运行,并且可能包含严重的错误(毕竟它们是alpha质量)。 The latest stable release is v1.1.3 if you want to install that instead. 如果要安装,则最新的稳定版本是v1.1.3

Second, on a bare metal install the cluster add-ons aren't added automatically. 其次,在裸机上,群集附件不会自动添加。 If you follow one of the getting started guides , the turn-key solutions will deploy the cluster add-ons automatically. 如果您遵循入门指南之一 ,则交钥匙解决方案将自动部署集群附加组件。 The most important cluster add-on is DNS, and you can follow the manual instructions to get it installed on your cluster. 最重要的群集附加组件是DNS,您可以按照手动说明将其安装在群集上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM