2018-08-10 19:11:53 -07:00
|
|
|
<!--TODO(bentheelder): fill this in much more thoroughly-->
|
|
|
|
|
# `kind` - **K**ubernetes **IN** **D**ocker
|
2018-09-12 14:44:29 -07:00
|
|
|
|
2018-08-31 22:11:51 -07:00
|
|
|
## WARNING: `kind` is still a work in progress! See [docs/todo.md][todo]
|
2018-07-23 10:06:37 -07:00
|
|
|
|
|
|
|
|
`kind` is a toolset for running local Kubernetes clusters using Docker container "nodes".
|
2018-08-27 10:39:45 -07:00
|
|
|
`kind` is designed to be suitable for testing Kubernetes, initially targeting the conformance suite.
|
2018-07-23 10:06:37 -07:00
|
|
|
|
|
|
|
|
It consists of:
|
2018-08-31 22:11:51 -07:00
|
|
|
- Go [packages][packages] implementing [cluster creation][cluster package], [image build][build package], etc.
|
|
|
|
|
- A command line interface ([`kind`][kind cli]) built on these packages.
|
|
|
|
|
- Docker [image(s)][images] written to run systemd, Kubernetes, etc.
|
|
|
|
|
- [`kubetest`][kubetest] integration also built on these packages (WIP)
|
2018-07-23 10:06:37 -07:00
|
|
|
|
2018-08-31 22:11:51 -07:00
|
|
|
Kind bootstraps each "node" with [kubeadm][kubeadm].
|
2018-07-23 10:06:37 -07:00
|
|
|
|
2018-08-31 22:11:51 -07:00
|
|
|
For more details see [the design documentation][design doc].
|
2018-07-23 10:06:37 -07:00
|
|
|
|
2018-08-10 19:11:53 -07:00
|
|
|
## Building
|
|
|
|
|
|
2018-09-12 15:44:17 -07:00
|
|
|
You can install `kind` with `go install sigs.k8s.io/kind`.
|
2018-08-10 19:11:53 -07:00
|
|
|
|
2018-07-23 10:06:37 -07:00
|
|
|
## Usage
|
|
|
|
|
|
2018-08-10 19:11:53 -07:00
|
|
|
`kind create` will create a cluster.
|
|
|
|
|
|
|
|
|
|
`kind delete` will delete a cluster.
|
2018-07-23 10:06:37 -07:00
|
|
|
|
2018-08-10 19:11:53 -07:00
|
|
|
For more usage, run `kind --help` or `kind [command] --help`.
|
2018-07-23 10:06:37 -07:00
|
|
|
|
|
|
|
|
## Advanced
|
|
|
|
|
|
2018-08-27 10:21:43 -07:00
|
|
|
`kind build base` will build the base image.
|
|
|
|
|
|
|
|
|
|
`kind build node` will build the node image.
|
2018-09-12 14:44:29 -07:00
|
|
|
|
|
|
|
|
## Community, discussion, contribution, and support
|
|
|
|
|
|
|
|
|
|
Learn how to engage with the Kubernetes community on the [community page](http://kubernetes.io/community/).
|
|
|
|
|
|
|
|
|
|
You can reach the maintainers of this project at:
|
|
|
|
|
|
|
|
|
|
- [Slack](http://slack.k8s.io/)
|
|
|
|
|
- [Mailing List](https://groups.google.com/forum/#!forum/kubernetes-dev)
|
|
|
|
|
|
|
|
|
|
### Code of conduct
|
|
|
|
|
|
|
|
|
|
Participation in the Kubernetes community is governed by the [Kubernetes Code of Conduct](code-of-conduct.md).
|
|
|
|
|
|
2018-08-31 22:11:51 -07:00
|
|
|
<!--links-->
|
2018-09-12 14:44:29 -07:00
|
|
|
[owners]: https://git.k8s.io/community/contributors/guide/owners.md
|
2018-08-31 22:11:51 -07:00
|
|
|
[todo]: ./docs/todo.md
|
|
|
|
|
[packages]: ./pkg
|
|
|
|
|
[cluster package]: ./pkg/cluster
|
|
|
|
|
[build package]: ./pkg/build
|
|
|
|
|
[kind cli]: ./main.go
|
|
|
|
|
[images]: ./images
|
|
|
|
|
[kubetest]: https://github.com/kubernetes/test-infra/tree/master/kubetest
|
|
|
|
|
[kubeadm]: https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm/
|
|
|
|
|
[design doc]: ./docs/design.md
|