Merge pull request #27220 from yifan-gu/kube-up-master
Automatic merge from submit-queue
cluster/gce/coreos: Make kube-up works for both rkt and docker on coreos on gce
With this PR, kube-up will be able to spin up a pure rkt cluster given the choice `KUBE_CONTAINER_RUNTIME=rkt`
e.g.
```
export KUBE_GCE_ZONE=us-east1-b
export KUBE_OS_DISTRIBUTION=coreos
export KUBE_GCE_MASTER_PROJECT=coreos-cloud
export KUBE_GCE_MASTER_IMAGE=coreos-alpha-1032-0-0-v20160428
export KUBE_GCE_NODE_PROJECT=coreos-cloud
export KUBE_GCE_NODE_IMAGE=coreos-alpha-1032-0-0-v20160428
export KUBE_ENABLE_NODE_LOGGING=false
export KUBE_ENABLE_CLUSTER_MONITORING=none
export KUBE_CONTAINER_RUNTIME=rkt
export KUBE_RKT_VERSION=v1.8.0
```
```
$ cluster/kube-up.sh
...
$ kubectl cluster-info
Kubernetes master is running at https://104.196.41.124
GLBCDefaultBackend is running at https://104.196.41.124/api/v1/proxy/namespaces/kube-system/services/default-http-backend
Elasticsearch is running at https://104.196.41.124/api/v1/proxy/namespaces/kube-system/services/elasticsearch-logging
Kibana is running at https://104.196.41.124/api/v1/proxy/namespaces/kube-system/services/kibana-logging
KubeDNS is running at https://104.196.41.124/api/v1/proxy/namespaces/kube-system/services/kube-dns
kubernetes-dashboard is running at https://104.196.41.124/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard
```
```
$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system elasticsearch-logging-v1-5zfrd 1/1 Running 0 2m
kube-system elasticsearch-logging-v1-83u6w 1/1 Running 0 2m
kube-system etcd-server-events-yifan-test-rkt-master 1/1 Running 0 2m
kube-system etcd-server-yifan-test-rkt-master 1/1 Running 0 2m
kube-system kibana-logging-v1-0g7yu 1/1 Running 2 2m
kube-system kube-addon-manager-yifan-test-rkt-master 1/1 Running 0 3m
kube-system kube-apiserver-yifan-test-rkt-master 1/1 Running 0 2m
kube-system kube-controller-manager-yifan-test-rkt-master 1/1 Running 0 3m
kube-system kube-dns-v14-1mqco 3/3 Running 0 2m
kube-system kube-scheduler-yifan-test-rkt-master 1/1 Running 0 2m
kube-system kubernetes-dashboard-v1.1.0-beta2-uwutn 1/1 Running 0 2m
kube-system l7-lb-controller-v0.6.0-8pgbo 2/2 Running 0 2m
kube-system node-problem-detector-v0.1-7iwb2 1/1 Running 0 2m
kube-system node-problem-detector-v0.1-k4m8o 1/1 Running 0 2m
kube-system node-problem-detector-v0.1-rxtp8 1/1 Running 0 2m
kube-system node-problem-detector-v0.1-wsoqd 1/1 Running 0 2m
```
Fix #24103
cc @kubernetes/sig-node @kubernetes/rktnetes-maintainers
Showing
cluster/gce/coreos/configure-node.sh
100644 → 100755
Please
register
or
sign in
to comment