Merge pull request #23250 from huggsboson/patch-1

Automatic merge from submit-queue

Use kube-system namespace

Fixes #23153.

Sadly, kube-system isn't automatically created, so people need to make
sure to create it in their turnup scripts.  Also after creating
kube-system it can take 10+ seconds for master and proxy to show up.

I tested the equivalent of these changes locally, but not these changes
themselves as I don't have a dev/build env up, so please read carefully
and maybe try them out!
This commit is contained in:
k8s-merge-robot 2016-04-25 20:23:36 -07:00
commit 1cd93cb1d6
5 changed files with 23 additions and 5 deletions

View File

@ -1,7 +1,10 @@
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {"name":"k8s-etcd"},
"metadata": {
"name": "k8s-etcd",
"namespace": "kube-system"
},
"spec": {
"hostNetwork": true,
"containers": [

View File

@ -1,7 +1,10 @@
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {"name":"k8s-proxy"},
"metadata": {
"name": "k8s-proxy",
"namespace": "kube-system"
},
"spec": {
"hostNetwork": true,
"containers": [

View File

@ -1,7 +1,10 @@
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {"name":"k8s-master"},
"metadata": {
"name": "k8s-master",
"namespace": "kube-system"
},
"spec":{
"hostNetwork": true,
"containers":[

View File

@ -1,7 +1,10 @@
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {"name":"k8s-master"},
"metadata": {
"name": "k8s-master",
"namespace": "kube-system"
},
"spec":{
"hostNetwork": true,
"containers":[

View File

@ -20,7 +20,7 @@ set -o errexit
set -o nounset
set -o pipefail
K8S_VERSION=${K8S_VERSION:-"1.2.0-alpha.7"}
K8S_VERSION=${K8S_VERSION:-"1.2.0"}
docker run \
--volume=/:/rootfs:ro \
@ -41,3 +41,9 @@ docker run \
--cluster-dns=10.0.0.10 \
--cluster-domain=cluster.local \
--allow-privileged=true --v=2
until $(kubectl cluster-info &> /dev/null); do
sleep 1
done
kubectl create ns kube-system