如何在裸机上使用Kubernetes 1.6安装插件的说明? [英] Instructions to install addons with Kubernetes 1.6 on bare metal machine?

查看:58
本文介绍了如何在裸机上使用Kubernetes 1.6安装插件的说明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照此文档从头开始设置了kubernetes集群: https://kubernetes .io/docs/getting-started-guides/scratch/

I have setup my kubernetes cluster from scratch following this doc: https://kubernetes.io/docs/getting-started-guides/scratch/

我的kubernetes主服务器和工作器工作正常,但是我没有找到部署dns插件的说明.

My kubernetes master and worker are working correctly, but I didn't find the instruction to deploy dns addons.

推荐答案

附加组件可以通过yaml文件以及使用addon manager进行部署.我已经使用此yaml文件(稍作修改)手动安装了dashboardmonitoringDNS /cluster/addons"rel =" noreferrer>存储库.

Addons can be deployed through yaml files as well as using the addon manager. I have already installed dashboard, monitoring, DNS manually using the yaml files provided (with small modifications) in this repo.

请注意,addon-manager非常特殊,您应该将所有文件复制到目录中:

Please note addon-manager is pretty special, You should copy all files into a directory then:

./kube-addons.sh

顺便说一句,我更喜欢手动安装插件,而不是使用插件管理器.

Btw I prefer installing addons manually instead of using addon manager.

DNS附加手册示例:

kubedns-controller.yaml.sed$DNS_DOMAIN替换为cluster.local(您应在此处使用设置中指定的域).您也可以将其设置为变量.请注意,此文件中有多次出现.

Take the kubedns-controller.yaml.sed, Replace the $DNS_DOMAIN with cluster.local(you should use the domain specified in your setup here). You can also set it as a variable. Please note there are multiple occurrences in this file.

然后:

mv kubedns-controller.yaml.sed kubedns-deployement.yaml
kubectl create -f kubedns-deployement.yaml

这篇关于如何在裸机上使用Kubernetes 1.6安装插件的说明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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