How do I enable addons in google container engine?

7/26/2017

I have been working on this for quite some time now, but google container engine has some missing documentation on installing addons.

First I thought I create my addons as yml files and install them into the kube-system namespace.

But the addon-manager apparently removes everything from the kube-system namespace that in its opinion does not belong there.

How do I add any kubernetes addon to my google container engine cluster?

For example I would like to install:

-- Overbryd
google-kubernetes-engine
kubernetes

1 Answer

7/26/2017

The add-on manager is removing everything from the kube-system namespace that has the label addonmanager.kubernetes.io/mode: Reconcile which doesn't exist in a "source of truth" location. Since your resources aren't in the source of truth, they get removed.

You can remove that label and the add-on manager should leave your deployments alone. But I'd recommend running them in a different namespace instead.

-- Robert Bailey
Source: StackOverflow