2015-07-12 12:04:52 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								<!--  BEGIN MUNGE: UNVERSIONED_WARNING  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								<!--  BEGIN STRIP_FOR_RELEASE  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 01:02:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< img  src = "http://kubernetes.io/img/warning.png"  alt = "WARNING" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     width="25" height="25">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< img  src = "http://kubernetes.io/img/warning.png"  alt = "WARNING" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     width="25" height="25">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< img  src = "http://kubernetes.io/img/warning.png"  alt = "WARNING" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     width="25" height="25">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< img  src = "http://kubernetes.io/img/warning.png"  alt = "WARNING" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     width="25" height="25">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< img  src = "http://kubernetes.io/img/warning.png"  alt = "WARNING" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     width="25" height="25">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< h2 > PLEASE NOTE: This document applies to the HEAD of the source tree< / h2 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								If you are using a released version of Kubernetes, you should
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								refer to the docs that go with that version.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< strong > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								The latest 1.0.x release of this document can be found
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								[here ](http://releases.k8s.io/release-1.0/docs/getting-started-guides/locally.md ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Documentation for other releases can be found at
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								[releases.k8s.io ](http://releases.k8s.io ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / strong > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								--
							 
						 
					
						
							
								
									
										
										
										
											2015-07-14 06:15:35 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-12 12:04:52 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								<!--  END STRIP_FOR_RELEASE  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								<!--  END MUNGE: UNVERSIONED_WARNING  --> 
							 
						 
					
						
							
								
									
										
										
										
											2015-06-23 03:39:35 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Getting started locally
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-----------------------
							 
						 
					
						
							
								
									
										
										
										
											2014-08-04 03:44:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-06-23 03:39:35 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**Table of Contents**
							 
						 
					
						
							
								
									
										
										
										
											2015-06-23 02:56:19 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-06-23 23:20:31 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [Requirements ](#requirements )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  [Linux ](#linux )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  [Docker ](#docker )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  [etcd ](#etcd )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  [go ](#go )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Starting the cluster ](#starting-the-cluster )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Running a container ](#running-a-container )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Running a user defined pod ](#running-a-user-defined-pod )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Troubleshooting ](#troubleshooting )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  [I cannot reach service IPs on the network. ](#i-cannot-reach-service-ips-on-the-network )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  [I cannot create a replication controller with replica size greater than 1!  What gives? ](#i-cannot-create-a-replication-controller-with-replica-size-greater-than-1--what-gives )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  [I changed Kubernetes code, how do I run it? ](#i-changed-kubernetes-code-how-do-i-run-it )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  [kubectl claims to start a container but `get pods` and `docker ps` don't show it. ](#kubectl-claims-to-start-a-container-but-get-pods-and-docker-ps-dont-show-it )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  [The pods fail to connect to the services by host names ](#the-pods-fail-to-connect-to-the-services-by-host-names )
							 
						 
					
						
							
								
									
										
										
										
											2015-06-23 02:56:19 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-11-03 09:13:43 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### Requirements
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-16 09:28:49 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-09-12 04:10:49 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								#### Linux
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-16 09:28:49 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Not running Linux? Consider running Linux in a local virtual machine with [Vagrant ](vagrant.md ), or on a cloud provider like [Google Compute Engine ](gce.md )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-09-12 04:10:49 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								#### Docker
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-13 06:05:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								At least [Docker ](https://docs.docker.com/installation/#installation )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								1.3+. Ensure the Docker daemon is running and can be contacted (try `docker
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 04:45:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								ps`).  Some of the Kubernetes components need to run as root, which normally
							 
						 
					
						
							
								
									
										
										
										
											2015-02-13 06:05:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								works fine with docker.
							 
						 
					
						
							
								
									
										
										
										
											2014-09-12 04:10:49 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#### etcd
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-14 16:48:16 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You need an [etcd ](https://github.com/coreos/etcd/releases ) in your path, please make sure it is installed and in your ``$PATH``.
							 
						 
					
						
							
								
									
										
										
										
											2014-09-12 04:10:49 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-11-25 23:53:51 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								#### go
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-08 20:21:13 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You need [go ](https://golang.org/doc/install ) at least 1.3+ in your path, please make sure it is installed and in your ``$PATH``.
							 
						 
					
						
							
								
									
										
										
										
											2014-11-25 23:53:51 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-09-12 04:10:49 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### Starting the cluster
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 04:45:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								In a separate tab of your terminal, run the following (since one needs sudo access to start/stop Kubernetes daemons, it is easier to run the entire script as root):
							 
						 
					
						
							
								
									
										
										
										
											2014-08-04 03:44:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-19 09:55:43 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
									
										
										
										
											2014-08-04 03:44:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								cd kubernetes
							 
						 
					
						
							
								
									
										
										
										
											2014-12-22 21:59:06 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								hack/local-up-cluster.sh
							 
						 
					
						
							
								
									
										
										
										
											2014-08-04 03:44:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-10-13 11:09:20 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								This will build and start a lightweight local cluster, consisting of a master
							 
						 
					
						
							
								
									
										
										
										
											2015-07-08 01:37:40 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								and a single node. Type Control-C to shut it down.
							 
						 
					
						
							
								
									
										
										
										
											2014-08-04 03:44:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-13 07:04:00 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You can use the cluster/kubectl.sh script to interact with the local cluster. hack/local-up-cluster.sh will
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								print the commands to run to point kubectl at the local cluster.
							 
						 
					
						
							
								
									
										
										
										
											2014-08-11 23:49:04 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### Running a container
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Your cluster is running, and you want to start running containers!
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-05 15:06:03 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You can now use any of the cluster/kubectl.sh commands to interact with your local setup.
							 
						 
					
						
							
								
									
										
										
										
											2014-10-13 11:09:20 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-19 09:55:43 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
									
										
										
										
											2014-12-05 06:56:40 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								cluster/kubectl.sh get pods
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								cluster/kubectl.sh get services
							 
						 
					
						
							
								
									
										
										
										
											2015-05-21 08:17:01 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								cluster/kubectl.sh get replicationcontrollers
							 
						 
					
						
							
								
									
										
										
										
											2015-05-22 04:53:10 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								cluster/kubectl.sh run my-nginx --image=nginx --replicas=2 --port=80
							 
						 
					
						
							
								
									
										
										
										
											2014-08-11 23:49:04 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## begin wait for provision to complete, you can monitor the docker pull by opening a new terminal
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  sudo docker images
							 
						 
					
						
							
								
									
										
										
										
											2015-04-17 00:11:47 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  ## you should see it pulling the nginx image, once the above command returns it
							 
						 
					
						
							
								
									
										
										
										
											2014-08-11 23:49:04 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  sudo docker ps
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ## you should see your container running!
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  exit
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## end wait
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 04:45:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## introspect Kubernetes!
 
							 
						 
					
						
							
								
									
										
										
										
											2014-12-05 06:56:40 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								cluster/kubectl.sh get pods
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								cluster/kubectl.sh get services
							 
						 
					
						
							
								
									
										
										
										
											2015-05-21 08:17:01 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								cluster/kubectl.sh get replicationcontrollers
							 
						 
					
						
							
								
									
										
										
										
											2014-08-11 23:49:04 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 06:46:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### Running a user defined pod
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-15 00:37:37 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Note the difference between a [container ](../user-guide/containers.md )
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 04:45:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								and a [pod ](../user-guide/pods.md ). Since you only asked for the former, Kubernetes will create a wrapper pod for you.
							 
						 
					
						
							
								
									
										
										
										
											2015-06-09 20:53:11 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								However you cannot view the nginx start page on localhost. To verify that nginx is running you need to run `curl`  within the docker container (try `docker exec` ).
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 06:46:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								You can control the specifications of a pod via a user defined manifest, and reach nginx through your browser on the port specified therein:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-19 09:55:43 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
									
										
										
										
											2015-07-16 01:42:59 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								cluster/kubectl.sh create -f docs/user-guide/pod.yaml
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 06:46:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-08-11 23:49:04 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Congratulations!
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### Troubleshooting
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-06-09 20:53:11 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								#### I cannot reach service IPs on the network.
 
							 
						 
					
						
							
								
									
										
										
										
											2014-10-13 11:09:20 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Some firewall software that uses iptables may not interact well with
							 
						 
					
						
							
								
									
										
										
										
											2015-06-09 20:53:11 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								kubernetes.  If you have trouble around networking, try disabling any
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								firewall or other iptables-using systems, first.  Also, you can check
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								if SELinux is blocking anything by running a command such as `journalctl --since yesterday | grep avc` .
							 
						 
					
						
							
								
									
										
										
										
											2014-10-13 11:09:20 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-24 04:41:11 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								By default the IP range for service cluster IPs is 10.0.*.* - depending on your
							 
						 
					
						
							
								
									
										
										
										
											2014-10-13 11:09:20 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								docker installation, this may conflict with IPs for containers.  If you find
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								containers running with IPs in this range, edit hack/local-cluster-up.sh and
							 
						 
					
						
							
								
									
										
										
										
											2015-05-24 13:17:55 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								change the service-cluster-ip-range flag to something else.
							 
						 
					
						
							
								
									
										
										
										
											2014-10-13 11:09:20 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-08-11 23:49:04 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								#### I cannot create a replication controller with replica size greater than 1!  What gives?
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-08 01:37:40 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You are running a single node setup.  This has the limitation of only supporting a single replica of a given pod.  If you are interested in running with larger replica sizes, we encourage you to try the local vagrant setup or one of the cloud providers.
							 
						 
					
						
							
								
									
										
										
										
											2014-08-11 23:49:04 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#### I changed Kubernetes code, how do I run it?
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-19 09:55:43 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
									
										
										
										
											2014-08-11 23:49:04 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								cd kubernetes
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								hack/build-go.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								hack/local-up-cluster.sh
							 
						 
					
						
							
								
									
										
										
										
											2014-08-16 09:28:49 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-02-11 06:46:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#### kubectl claims to start a container but `get pods` and `docker ps` don't show it.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 04:45:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								One or more of the KUbernetes daemons might've crashed. Tail the logs of each in /tmp.
							 
						 
					
						
							
								
									
										
										
										
											2015-04-12 14:40:52 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								#### The pods fail to connect to the services by host names
 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-18 06:35:41 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-17 05:54:28 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								The local-up-cluster.sh script doesn't start a DNS service. Similar situation can be found [here ](https://github.com/GoogleCloudPlatform/kubernetes/issues/6667 ). You can start a manually. Related documents can be found [here ](../../cluster/addons/dns/#how-do-i-configure-it )
							 
						 
					
						
							
								
									
										
										
										
											2015-05-15 06:12:45 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-14 08:13:09 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								<!--  BEGIN MUNGE: GENERATED_ANALYTICS  --> 
							 
						 
					
						
							
								
									
										
										
										
											2015-05-15 06:12:45 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								[]()
							 
						 
					
						
							
								
									
										
										
										
											2015-07-14 08:13:09 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								<!--  END MUNGE: GENERATED_ANALYTICS  -->