k3s/pkg/master
k8s-merge-robot 667f586083 Merge pull request #25196 from luxas/auto_create_kube_system
Automatic merge from submit-queue

Automatically create the kube-system namespace

At the same time we ensure that the `default` namespace is present, it also creates `kube-system` if it doesn't exist.

`kube-system` will now exist from the beginning, and will be recreated every 10s if deleted, in the same manner as the `default` ns

This makes UX much better, no need for `kubectl`ing a `kube-system.yaml` file anymore for a function that is essential to Kubernetes (addons). For instance, this makes dashboard deployment much easier when there's no need to check for the `kube-system` ns first.

A follow up in the future may remove places where logic to manually create the kube-system namespace is present.

Also fixed a small bug where `CreateNamespaceIfNeeded` ignored the `ns` parameter and was hardcoded to `api.NamespaceDefault`.

@davidopp @lavalamp @thockin @mikedanese @bryk @cheld @fgrzadkowski @smarterclayton @wojtek-t @dlorenc @vishh @dchen1107 @bgrant0607 @roberthbailey

<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/25196)
<!-- Reviewable:end -->
2016-05-12 11:17:09 -07:00
..
ports Corrects some misspellings in comments 2016-05-11 08:16:13 +01:00
OWNERS Remove myself from a bunch of OWNERS files, as I am too overloaded 2016-05-11 13:34:51 -07:00
controller.go Automatically create the kube-system namespace 2016-05-05 22:27:49 +03:00
controller_test.go give the kubernetes service client ip session affinity 2016-03-17 09:38:22 -07:00
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
import_known_versions.go Define PodDisruption API types. 2016-05-06 17:24:53 -07:00
master.go Merge pull request #25196 from luxas/auto_create_kube_system 2016-05-12 11:17:09 -07:00
master_test.go enable batch/v2alpha1 tests 2016-05-10 22:40:24 +02:00
thirdparty_controller.go Moving /apis handler to generic server 2016-02-04 17:58:13 -08:00
thirdparty_controller_test.go Reduce LOC in third party controller test 2016-04-27 02:50:46 -04:00