Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct way to install addons with Kubernetes 1.1?

What is the correct way to install addons with Kubernetes 1.1? The docs aren't as clear as I'd like on this subject; they seem to imply that one should copy addons' yaml files to /etc/kubernetes/addons on master nodes, but I have tried this and nothing happens.

Additionally, for added confusion, the docs imply that addons are bundled with Kubernetes:

So the only persistent way to make changes in add-ons is to update the manifests on the master server. But still, 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.

So, how should I really install addons, f.ex. cluster-loadbalancing, with Kubernetes 1.1?

like image 995
aknuds1 Avatar asked Mar 18 '16 16:03

aknuds1


1 Answers

... they seem to imply that one should copy addons' yaml files to /etc/kubernetes/addons on master nodes, but I have tried this and nothing happens.

This is only true if you are using one of the salt-based installation mechanisms.

So, how should I really install addons, f.ex. cluster-loadbalancing, with Kubernetes 1.1?

Most of the add-ons can be installed by just running kubectl create -f against the replication controller and service files for the add-on. You need to create the kube-system namespace first if you haven't already, and some of the add-ons (like dns) require you to fill in a few values in a jinja template that would otherwise be handled by salt.

like image 72
Robert Bailey Avatar answered Sep 27 '22 23:09

Robert Bailey