Automated management of large-scale applications on Kubernetes (incubating project under CNCF)
Go to file
Robert Everson 7dc927e01e
Remove cloneset scale race condition on bool (#356)
* Remove cloneset scale race condition on bool
* Change bool to int64 comparison
2020-08-31 10:30:18 +08:00
.circleci Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
.github install kruise before start e2e test (#132) 2019-09-19 23:06:46 -07:00
apis add min ready setting (#336) 2020-08-24 20:07:52 -07:00
charts/kruise Fix README.md spelling errors (#350) 2020-08-27 11:30:11 +08:00
config add min ready setting (#336) 2020-08-24 20:07:52 -07:00
docs Revise readme and tutorial 2020-08-24 10:57:57 +08:00
hack Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
pkg Remove cloneset scale race condition on bool (#356) 2020-08-31 10:30:18 +08:00
scripts Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
test/e2e Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
vendor Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
.gitignore Add vendor with go mod (#287) 2020-06-11 09:18:24 -07:00
.travis.yml Improve README and add contributing (#288) 2020-06-11 09:20:32 -07:00
ADOPTERS.md docs: better readme to add more details 2019-07-12 08:59:07 +08:00
CHANGELOG.md Add docs and tutorial for v0.6.0 (#341) 2020-08-19 22:32:52 -07:00
CODE_OF_CONDUCT.md fix typo (#354) 2020-08-27 09:56:57 -07:00
CONTRIBUTING.md fix typo (#354) 2020-08-27 09:56:57 -07:00
Dockerfile Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
FAQ.md fix typo (#354) 2020-08-27 09:56:57 -07:00
GOVERNANCE.md create maintainer.md (#333) 2020-08-13 23:27:29 -07:00
LICENSE.md md link style 2019-07-11 22:10:30 +08:00
MAINTAINERS.md Optimize generation for webhook certs and configuration (#335) 2020-08-14 01:12:49 -07:00
Makefile Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
OWNERS Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
PROJECT Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
README-zh_CN.md Update installation url for v0.6.0 2020-08-20 15:22:11 +08:00
README.md Revise readme and tutorial 2020-08-24 10:57:57 +08:00
go.mod Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
go.sum Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00
main.go Update controller-runtime and rebuild project structure (#321) 2020-07-31 14:16:47 -07:00

README.md

OpenKruise/Kruise

License Go Report Card CII Best Practices Build Status CircleCI codecov Contributor Covenant

English | 简体中文

notification What is NEW!
Aug 19th, 2020. Kruise v0.6.0 is RELEASED! It updates Kubernetes dependency and switches to new controller runtime framework. It also supports a new controller called Advanced DaemonSet, please check the CHANGELOG for details.
May 19th, 2020. Kruise v0.5.0 is RELEASED! It supports maxSurge for CloneSet and fixes bugs for StatefulSet/SidecarSet, please check the CHANGELOG for details.
Mar 20th, 2020. Kruise v0.4.1 is RELEASED! It provides graceful in-place update for Advanced StatefulSet and CloneSet, please check the CHANGELOG for details.

Introduction

Kruise is the core of the OpenKruise (official site: https://openkruise.io) project. It consists of several controllers which extend and complement the Kubernetes core controllers for workload management.

As of now, Kruise offers these workload controllers:

  • CloneSet: CloneSet is a workload that mainly focuses on managing stateless applications. It provides a rich set of features for more efficient, deterministic and controlled management, such as in-place update, specified Pod deletion, configurable priority/scatter based update, preUpdate/postUpdate hooks, etc. This post provides more details about why CloneSet is useful.

  • Advanced StatefulSet: An enhanced version of default StatefulSet with extra functionalities such as in-place update, pause and maxUnavailable.

  • SidecarSet: A controller that injects sidecar containers into the Pod spec based on the Pod selectors. The controller is also responsible for upgrading the sidecar containers.

  • UnitedDeployment: This controller manages application Pods spread in multiple fault domains by using multiple workloads.

  • BroadcastJob: A job that runs Pods to completion across all the nodes in the cluster.

  • Advanced DaemonSet: An enhanced version of default DaemonSet with extra upgrade strategies such as partition, node selector, pause and surging.

The project roadmap is actively updated in here. This video demo by Lachlan Evenson is a good introduction for new users.

Key Features

  • In-place update

    In-place update provides an alternative to update container images without deleting and recreating the Pod. It is much faster compared to the recreate update used by the native Deployment/StatefulSet and has almost no side effects on other running containers.

  • Sidecar containers management

    The Sidecar containers can be simply defined in the SidecarSet custom resource and the controller will inject them into all Pods matched. The implementation is done by using Kubernetes mutating webhooks, similar to what istio does. However, SidecarSet allows you to explicitly manage your own sidecars.

  • Multiple fault domains deployment

    A global workload can be defined over multiple fault domains, and the Kruise controller will spread a sub workload in each domain. You can manage the domain replicas, sub workload template and update strategies uniformly using the global workload.

Quick Start

For a Kubernetes cluster with its version higher than v1.12, you can simply install Kruise with helm v3:

helm install kruise https://github.com/openkruise/kruise/releases/download/v0.6.0/kruise-chart.tgz

Note that installing this chart directly means it will use the default template values for the kruise-manager. You may have to set your specific configurations when it is deployed into a production cluster or you want to enable/disable specific controllers.

For more details, see quick-start.

Documentation

You can view the full documentation from the OpenKruise website.

We also provide tutorials for ALL Kruise controllers to demonstrate how to use them.

Contributing

You are warmly welcome to hack on Kruise. We have prepared a detailed guide CONTRIBUTING.md.

Community

Active communication channels:

  • Slack: channel address
  • Mailing List: todo
  • Dingtalk Group(钉钉讨论群)

License

Kruise is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.