gardener

module
v1.72.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more

README

Gardener

Gardener Logo

CI Build status Go Report Card GoDoc CII Best Practices

Gardener implements the automated management and operation of Kubernetes clusters as a service and provides a fully validated extensibility framework that can be adjusted to any programmatic cloud or infrastructure provider.

Gardener is 100% Kubernetes-native and exposes its own Cluster API to create homogeneous clusters on all supported infrastructures. This API differs from SIG Cluster Lifecycle's Cluster API that only harmonizes how to get to clusters, while Gardener's Cluster API goes one step further and also harmonizes the make-up of the clusters themselves. That means, Gardener gives you homogeneous clusters with exactly the same bill of material, configuration and behavior on all supported infrastructures, which you can see further down below in the section on our K8s Conformance Test Coverage.

In 2020, SIG Cluster Lifecycle's Cluster API made a huge step forward with v1alpha3 and the newly added support for declarative control plane management. This made it possible to integrate managed services like GKE or Gardener. We would be more than happy, if the community would be interested, to contribute a Gardener control plane provider. For more information on the relation between Gardener API and SIG Cluster Lifecycle's Cluster API, please see here.

Gardener's main principle is to leverage Kubernetes concepts for all of its tasks.

In essence, Gardener is an extension API server that comes along with a bundle of custom controllers. It introduces new API objects in an existing Kubernetes cluster (which is called garden cluster) in order to use them for the management of end-user Kubernetes clusters (which are called shoot clusters). These shoot clusters are described via declarative cluster specifications which are observed by the controllers. They will bring up the clusters, reconcile their state, perform automated updates and make sure they are always up and running.

To accomplish these tasks reliably and to offer a high quality of service, Gardener controls the main components of a Kubernetes cluster (etcd, API server, controller manager, scheduler). These so-called control plane components are hosted in Kubernetes clusters themselves (which are called seed clusters). This is the main difference compared to many other OSS cluster provisioning tools: The shoot clusters do not have dedicated master VMs. Instead, the control plane is deployed as a native Kubernetes workload into the seeds (the architecture is commonly referred to as kubeception or inception design). This does not only effectively reduce the total cost of ownership but also allows easier implementations for "day-2 operations" (like cluster updates or robustness) by relying on all the mature Kubernetes features and capabilities.

Gardener reuses the identical Kubernetes design to span a scalable multi-cloud and multi-cluster landscape. Such familiarity with known concepts has proven to quickly ease the initial learning curve and accelerate developer productivity:

  • Kubernetes API Server = Gardener API Server
  • Kubernetes Controller Manager = Gardener Controller Manager
  • Kubernetes Scheduler = Gardener Scheduler
  • Kubelet = Gardenlet
  • Node = Seed cluster
  • Pod = Shoot cluster

Please find more information regarding the concepts and a detailed description of the architecture in our Gardener Wiki and our blog posts on kubernetes.io: Gardener - the Kubernetes Botanist (17.5.2018) and Gardener Project Update (2.12.2019).


K8s Conformance Test Coverage certified kubernetes logo

Gardener takes part in the Certified Kubernetes Conformance Program to attest its compatibility with the K8s conformance testsuite. Currently Gardener is certified for K8s versions up to v1.26, see the conformance spreadsheet.

Continuous conformance test results of the latest stable Gardener release are uploaded regularly to the CNCF test grid:

Provider/K8s v1.27 v1.26 v1.25 v1.24 v1.23 v1.22 v1.21 v1.20
AWS N/A Gardener v1.26 Conformance Tests Gardener v1.25 Conformance Tests Gardener v1.24 Conformance Tests Gardener v1.23 Conformance Tests Gardener v1.22 Conformance Tests Gardener v1.21 Conformance Tests Gardener v1.20 Conformance Tests
Azure N/A Gardener v1.26 Conformance Tests Gardener v1.25 Conformance Tests Gardener v1.24 Conformance Tests Gardener v1.23 Conformance Tests Gardener v1.22 Conformance Tests Gardener v1.21 Conformance Tests Gardener v1.20 Conformance Tests
GCP N/A Gardener v1.26 Conformance Tests Gardener v1.25 Conformance Tests Gardener v1.24 Conformance Tests Gardener v1.23 Conformance Tests Gardener v1.22 Conformance Tests Gardener v1.21 Conformance Tests Gardener v1.20 Conformance Tests
OpenStack N/A Gardener v1.26 Conformance Tests Gardener v1.25 Conformance Tests Gardener v1.24 Conformance Tests Gardener v1.23 Conformance Tests Gardener v1.22 Conformance Tests Gardener v1.21 Conformance Tests Gardener v1.20 Conformance Tests
Alicloud N/A Gardener v1.26 Conformance Tests Gardener v1.25 Conformance Tests Gardener v1.24 Conformance Tests Gardener v1.23 Conformance Tests Gardener v1.22 Conformance Tests Gardener v1.21 Conformance Tests Gardener v1.20 Conformance Tests
Equinix Metal N/A N/A N/A N/A N/A N/A N/A N/A
vSphere N/A N/A N/A N/A N/A N/A N/A N/A

Get an overview of the test results at testgrid.

Start using or developing the Gardener locally

See our documentation in the /docs repository, please find the index here.

Setting up your own Gardener landscape in the Cloud

The quickest way to test drive Gardener is to install it virtually onto an existing Kubernetes cluster, just like you would install any other Kubernetes-ready application. You can do this with our Gardener Helm Chart.

Alternatively you can use our garden setup project to create a fully configured Gardener landscape which also includes our Gardener Dashboard.

Feedback and Support

Feedback and contributions are always welcome!

All channels for getting in touch or learning about our project are listed under the community section. We are cordially inviting interested parties to join our bi-weekly meetings.

Please report bugs or suggestions about our Kubernetes clusters as such or the Gardener itself as GitHub issues or join our Slack channel #gardener (please invite yourself to the Kubernetes workspace here).

Learn More!

Please find further resources about our project here:

Directories

Path Synopsis
gardener/provider-local/extension
Package chart enables go:generate support for generating the correct controller registration.
Package chart enables go:generate support for generating the correct controller registration.
cmd
example
operator
Package operator contains example manifests for working on operator.
Package operator contains example manifests for working on operator.
resource-manager
Package resource_manager contains example manifests for working on resource-manager.
Package resource_manager contains example manifests for working on resource-manager.
seed-crds
Package seed_crds contains generated manifests for all CRDs that are present on a Seed cluster.
Package seed_crds contains generated manifests for all CRDs that are present on a Seed cluster.
extensions
pkg/apis/config
+k8s:deepcopy-gen=package
+k8s:deepcopy-gen=package
pkg/apis/config/v1alpha1
+k8s:deepcopy-gen=package
+k8s:deepcopy-gen=package
pkg/controller/backupentry/genericactuator/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/controller/cmd/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/controller/controlplane/genericactuator/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/controller/controlplane/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/controller/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/controller/worker/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/terraformer/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/util/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/webhook/cloudprovider/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/webhook/controlplane/genericmutator/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pkg/webhook/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
hack
local-development/common
This package imports things required by build scripts, to force `go mod` to see them as dependencies
This package imports things required by build scripts, to force `go mod` to see them as dependencies
tools
Package tools allows importing scripts in this directory in other projects via go mod dependencies.
Package tools allows importing scripts in this directory in other projects via go mod dependencies.
pkg
admissioncontroller/webhook/auth/seed/graph/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
api
apis/authentication
Package authentication is the internal version of the API.
Package authentication is the internal version of the API.
apis/authentication/v1alpha1
Package v1alpha1 is a version of the API.
Package v1alpha1 is a version of the API.
apis/authentication/validation
Package validation contains methods to validate kinds in the authentication.k8s.io API group.
Package validation contains methods to validate kinds in the authentication.k8s.io API group.
apis/core
Package core is the internal version of the API.
Package core is the internal version of the API.
apis/core/v1beta1
Package v1beta1 is a version of the API.
Package v1beta1 is a version of the API.
apis/extensions/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.
apis/operations
Package operations is the internal version of the API.
Package operations is the internal version of the API.
apis/operations/v1alpha1
Package v1alpha1 is a version of the API.
Package v1alpha1 is a version of the API.
apis/operator/v1alpha1
Package v1alpha1 contains the configuration of the Gardener Operator.
Package v1alpha1 contains the configuration of the Gardener Operator.
apis/resources/v1alpha1
Package v1alpha1 contains the configuration of the Gardener Resource Manager.
Package v1alpha1 contains the configuration of the Gardener Resource Manager.
apis/seedmanagement
Package seedmanagement is the internal version of the API.
Package seedmanagement is the internal version of the API.
apis/seedmanagement/v1alpha1
Package v1alpha1 is a version of the API.
Package v1alpha1 is a version of the API.
apis/settings
Package settings is the internal version of the API.
Package settings is the internal version of the API.
apis/settings/v1alpha1
Package v1alpha1 is a version of the API.
Package v1alpha1 is a version of the API.
chartrenderer/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
client/core/clientset/internalversion
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/core/clientset/internalversion/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/core/clientset/internalversion/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/core/clientset/internalversion/typed/core/internalversion
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/core/clientset/internalversion/typed/core/internalversion/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/core/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/core/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/core/clientset/versioned/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
client/core/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/core/clientset/versioned/typed/core/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/core/clientset/versioned/typed/core/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/core/clientset/versioned/typed/core/v1beta1/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
client/kubernetes/clientmap/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
client/kubernetes/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
client/seedmanagement/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/seedmanagement/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/seedmanagement/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/seedmanagement/clientset/versioned/typed/seedmanagement/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/seedmanagement/clientset/versioned/typed/seedmanagement/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/settings/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/settings/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/settings/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/settings/clientset/versioned/typed/settings/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/settings/clientset/versioned/typed/settings/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
component/backupentry/mock
Package backupentry is a generated GoMock package.
Package backupentry is a generated GoMock package.
component/blackboxexporter/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/clusterautoscaler/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/clusteridentity/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/coredns/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/etcd/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/etcdcopybackupstask/mock
Package etcdcopybackupstask is a generated GoMock package.
Package etcdcopybackupstask is a generated GoMock package.
component/extensions/backupentry/mock
Package backupentry is a generated GoMock package.
Package backupentry is a generated GoMock package.
component/extensions/containerruntime/mock
Package containerruntime is a generated GoMock package.
Package containerruntime is a generated GoMock package.
component/extensions/controlplane/mock
Package controlplane is a generated GoMock package.
Package controlplane is a generated GoMock package.
component/extensions/crds/assets
Package seed_crds contains generated manifests for all CRDs that are present on a Seed cluster.
Package seed_crds contains generated manifests for all CRDs that are present on a Seed cluster.
component/extensions/dnsrecord/mock
Package dnsrecord is a generated GoMock package.
Package dnsrecord is a generated GoMock package.
component/extensions/extension/mock
Package extension is a generated GoMock package.
Package extension is a generated GoMock package.
component/extensions/infrastructure/mock
Package infrastructure is a generated GoMock package.
Package infrastructure is a generated GoMock package.
component/extensions/operatingsystemconfig/mock
Package operatingsystemconfig is a generated GoMock package.
Package operatingsystemconfig is a generated GoMock package.
Package kubelet is a generated GoMock package.
component/extensions/operatingsystemconfig/original/components/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/extensions/operatingsystemconfig/utils/mock
Package utils is a generated GoMock package.
Package utils is a generated GoMock package.
component/extensions/worker/mock
Package worker is a generated GoMock package.
Package worker is a generated GoMock package.
component/hvpa/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/kubeapiserver/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/kubecontrollermanager/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/kubeproxy/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/kubernetesdashboard/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/kubescheduler/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/kubestatemetrics/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/machinecontrollermanager/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/nodeexporter/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/nodelocaldns/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/resourcemanager/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/vpa/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/vpnseedserver/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
component/vpnshoot/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
controllermanager/controller/managedseedset/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
gardenlet/controller/managedseed/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
gardenlet/controller/shoot/shoot/helper
Package helper contains helpers for the gardenlet's shoot main controller.
Package helper contains helpers for the gardenlet's shoot main controller.
mock/apiserver/authorization/authorizer
Package authorizer is a generated GoMock package.
Package authorizer is a generated GoMock package.
mock/client-go/core/v1
Package v1 is a generated GoMock package.
Package v1 is a generated GoMock package.
mock/client-go/discovery
Package discovery is a generated GoMock package.
Package discovery is a generated GoMock package.
mock/client-go/kubernetes
Package kubernetes is a generated GoMock package.
Package kubernetes is a generated GoMock package.
mock/client-go/rest
Package rest is a generated GoMock package.
Package rest is a generated GoMock package.
mock/client-go/tools/record
Package record is a generated GoMock package.
Package record is a generated GoMock package.
mock/client-go/util/workqueue
Package workqueue is a generated GoMock package.
Package workqueue is a generated GoMock package.
mock/controller-runtime/cache
Package cache is a generated GoMock package.
Package cache is a generated GoMock package.
mock/controller-runtime/client
Package client is a generated GoMock package.
Package client is a generated GoMock package.
mock/controller-runtime/manager
Package manager is a generated GoMock package.
Package manager is a generated GoMock package.
mock/controller-runtime/predicate
Package predicate is a generated GoMock package.
Package predicate is a generated GoMock package.
mock/go/context
Package context is a generated GoMock package.
Package context is a generated GoMock package.
mock/go/io
Package io is a generated GoMock package.
Package io is a generated GoMock package.
mock/go/time
Package time is a generated GoMock package.
Package time is a generated GoMock package.
operation/botanist/matchers
this file is copy of https://github.com/kubernetes/kubernetes/blob/f247e75980061d7cf83c63c0fb1f12c7060c599f/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/rules/rules.go with some modifications for the webhook matching use-case.
this file is copy of https://github.com/kubernetes/kubernetes/blob/f247e75980061d7cf83c63c0fb1f12c7060c599f/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/rules/rules.go with some modifications for the webhook matching use-case.
provider-local/apis/local/v1alpha1
Package v1alpha1 contains the local provider API resources.
Package v1alpha1 contains the local provider API resources.
utils/chart/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
utils/context/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
utils/errors/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
utils/flow
Package flow provides utilities to construct a directed acyclic computational graph that is then executed and monitored with maximum parallelism.
Package flow provides utilities to construct a directed acyclic computational graph that is then executed and monitored with maximum parallelism.
utils/flow/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
utils/images
Package images contains constants for image names in the image vector.
Package images contains constants for image names in the image vector.
utils/kubernetes/client/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
utils/retry/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
utils/time/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
plugin
test
third_party

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL