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

爱⌒轻易说出口 提交于 2020-01-12 18:53:08

问题


I have setup my kubernetes cluster from scratch following this doc: 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.


回答1:


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.

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 addon manual example:

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.

Then:

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


来源:https://stackoverflow.com/questions/42314708/instructions-to-install-addons-with-kubernetes-1-6-on-bare-metal-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!