简体   繁体   English

在裸机上安装Kubernetes 1.6插件的说明?

[英]Instructions to install addons with Kubernetes 1.6 on bare metal machine?

I have setup my kubernetes cluster from scratch following this doc: https://kubernetes.io/docs/getting-started-guides/scratch/ 我按照以下文档从头开始设置我的kubernetes集群: https ://kubernetes.io/docs/getting-started-guides/scratch/

My kubernetes master and worker are working correctly, but I didn't find the instruction to deploy dns addons. 我的kubernetes主人和工人正常工作,但我没有找到部署dns插件的指令。

Addons can be deployed through yaml files as well as using the addon manager . 可以通过yaml文件以及使用addon manager来部署addon manager I have already installed dashboard , monitoring , DNS manually using the yaml files provided (with small modifications) in this repo . 我已经使用此repo中提供的yaml文件(经过少量修改)手动安装了dashboardmonitoringDNS

Please note addon-manager is pretty special, You should copy all files into a directory then: 请注意, addon-manager非常特别,你应该将所有文件复制到一个目录中,然后:

./kube-addons.sh

Btw I prefer installing addons manually instead of using addon manager. 顺便说一下,我更喜欢手动安装插件,而不是使用插件管理器。

DNS addon manual example: DNS插件手册示例:

Take the kubedns-controller.yaml.sed , Replace the $DNS_DOMAIN with cluster.local (you should use the domain specified in your setup here). 使用kubedns-controller.yaml.sed ,将$DNS_DOMAIN替换为cluster.local (您应该使用此处设置中指定的域)。 You can also set it as a variable. 您也可以将其设置为变量。 Please note there are multiple occurrences in this file. 请注意,此文件中有多次出现。

Then: 然后:

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

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

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