2014-06-06 23:40:48 +00:00
# Kubernetes
2014-06-09 23:46:16 +00:00
Kubernetes is an open source implementation of container cluster management.
2014-06-06 23:40:48 +00:00
2014-06-29 03:11:51 +00:00
[Kubernetes Design Document ](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/DESIGN.md ) - [Kubernetes @ Google I/O 2014 ](http://youtu.be/tsk0pWf4ipw )
2014-06-20 04:59:40 +00:00
2014-06-16 05:34:22 +00:00
[![GoDoc ](https://godoc.org/github.com/GoogleCloudPlatform/kubernetes?status.png )](https://godoc.org/github.com/GoogleCloudPlatform/kubernetes)
2014-06-20 04:59:40 +00:00
[![Travis ](https://travis-ci.org/GoogleCloudPlatform/kubernetes.svg?branch=master )](https://travis-ci.org/GoogleCloudPlatform/kubernetes)
2014-06-16 05:34:22 +00:00
2014-06-29 03:11:22 +00:00
2014-06-10 16:22:44 +00:00
## Kubernetes can run anywhere!
However, initial development was done on GCE and so our instructions and scripts are built around that. If you make it work on other infrastructure please let us know and contribute instructions/code.
2014-07-03 21:10:20 +00:00
## Kubernetes is in pre-production beta!
While the concepts and architecture in Kubernetes represent years of experience designing and building large scale cluster manager at Google, the Kubernetes project is still under heavy development. Expect bugs, design and API changes as we bring it to a stable, production product over the coming year.
2014-06-16 05:11:43 +00:00
### Contents
2014-08-03 19:44:33 +00:00
* Getting Started Guides
* [Google Compute Engine ](docs/getting-started-guides/gce.md )
* [Vagrant ](docs/getting-started-guides/vagrant.md )
* [Locally ](docs/getting-started-guides/locally.md )
* [CoreOS ](docs/getting-started-guides/coreos.md )
* [Fedora ](docs/getting-started-guides/fedora.md )
2014-07-28 21:33:20 +00:00
* [kubecfg command line tool ](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/cli.md )
2014-08-08 19:49:06 +00:00
* [Kubernetes API Documentation ](http://cdn.rawgit.com/GoogleCloudPlatform/kubernetes/ce4fcc4ad89ed7b481a46a0ad4c99dee4c6f24ba/api/kubernetes.html )
2014-06-16 05:11:43 +00:00
* [Discussion and Community Support ](#community-discussion-and-support )
* [Hacking on Kubernetes ](#development )
2014-06-09 06:19:33 +00:00
## Where to go next?
2014-07-15 04:33:02 +00:00
[Detailed example application ](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/guestbook/README.md )
2014-06-09 06:19:33 +00:00
2014-06-27 19:31:35 +00:00
[Example of dynamic updates ](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/update-demo/README.md )
2014-06-09 06:19:33 +00:00
Or fork and start hacking!
2014-06-09 23:46:16 +00:00
## Community, discussion and support
If you have questions or want to start contributing please reach out. We don't bite!
The Kubernetes team is hanging out on IRC on the [#google-containers room on freenode.net ](http://webchat.freenode.net/?channels=google-containers ). We also have the [google-containers Google Groups mailing list ](https://groups.google.com/forum/#!forum/google-containers ).
If you are a company and are looking for a more formal engagement with Google around Kubernetes and containers at Google as a whole, please fill out [this form ](https://docs.google.com/a/google.com/forms/d/1_RfwC8LZU4CKe4vKq32x5xpEJI5QZ-j0ShGmZVv9cm4/viewform ). and we'll be in touch.
2014-06-06 23:40:48 +00:00
## Development
### Hooks
```
# Before committing any changes, please link/copy these hooks into your .git
# directory. This will keep you from accidentally committing non-gofmt'd
# go code.
2014-06-20 15:31:51 +00:00
#
# NOTE: The "../.." part seems odd but is correct, since the newly created
# links will be 2 levels down the tree.
2014-06-06 23:40:48 +00:00
cd kubernetes
2014-06-20 15:31:51 +00:00
ln -s ../../hooks/prepare-commit-msg .git/hooks/prepare-commit-msg
ln -s ../../hooks/commit-msg .git/hooks/commit-msg
2014-06-06 23:40:48 +00:00
```
### Unit tests
```
cd kubernetes
2014-06-07 04:38:37 +00:00
hack/test-go.sh
2014-06-06 23:40:48 +00:00
```
### Coverage
```
cd kubernetes
go tool cover -html=target/c.out
```
### Integration tests
```
# You need an etcd somewhere in your path.
# To get from head:
go get github.com/coreos/etcd
go install github.com/coreos/etcd
sudo ln -s "$GOPATH/bin/etcd" /usr/bin/etcd
# Or just use the packaged one:
sudo ln -s "$REPO_ROOT/target/bin/etcd" /usr/bin/etcd
```
```
cd kubernetes
2014-06-07 04:38:37 +00:00
hack/integration-test.sh
2014-06-06 23:40:48 +00:00
```
2014-07-23 15:21:55 +00:00
### End-to-End tests
With a GCE account set up for running `cluster/kube-up.sh` (see Setup above):
```
cd kubernetes
hack/e2e-test.sh
```
2014-06-06 23:40:48 +00:00
### Keeping your development fork in sync
One time after cloning your forked repo:
```
git remote add upstream https://github.com/GoogleCloudPlatform/kubernetes.git
```
Then each time you want to sync to upstream:
```
git fetch upstream
git rebase upstream/master
```
### Regenerating the documentation
```
cd kubernetes/api
2014-06-17 18:14:00 +00:00
sudo docker build -t kubernetes/raml2html .
sudo docker run --name="docgen" kubernetes/raml2html
sudo docker cp docgen:/data/kubernetes.html .
2014-06-06 23:40:48 +00:00
```