Production-Grade Container Scheduling and Management
Go to file
Patrick Ohly 6f9140e421 DRA scheduler: stop allocating before deallocation
This fixes a test flake:

    [sig-node] DRA [Feature:DynamicResourceAllocation] multiple nodes reallocation [It] works
    /nvme/gopath/src/k8s.io/kubernetes/test/e2e/dra/dra.go:552

      [FAILED] number of deallocations
      Expected
          <int64>: 2
      to equal
          <int64>: 1
      In [It] at: /nvme/gopath/src/k8s.io/kubernetes/test/e2e/dra/dra.go:651 @ 09/05/23 14:01:54.652

This can be reproduced locally with

    stress -p 10 go test ./test/e2e -args -ginkgo.focus=DynamicResourceAllocation.*reallocation.works  -ginkgo.no-color -v=4 -ginkgo.v

Log output showed that the sequence of events leading to this was:
- claim gets allocated because of selected node
- a different node has to be used, so PostFilter sets
  claim.status.deallocationRequested
- the driver deallocates
- before the scheduler can react and select a different node,
  the driver allocates *again* for the original node
- the scheduler asks for deallocation again
- the driver deallocates again (causing the test failure)
- eventually the pod runs

The fix is to disable allocations first by removing the selected node and then
starting to deallocate.
2023-09-11 10:56:17 +02:00
.github Add new contribex leads to sig-contribex-approvers 2023-04-10 12:34:03 +05:30
api apf: remove v1alpha1 API 2023-08-30 20:48:42 +08:00
build Bump distroless-iptables to v0.3.2 2023-09-08 15:01:22 +02:00
CHANGELOG CHANGELOG: Update directory for v1.28.1 release 2023-08-24 13:41:18 +00:00
cluster [cluster/gce] Add KCM specific args 2023-09-08 11:12:05 +00:00
cmd added documentation about the format of certificateKey 2023-09-10 19:50:42 +05:30
docs
hack Merge pull request #120454 from pohly/golangci-lint-hint-deprecated 2023-09-08 00:32:25 -07:00
LICENSES New repo who dis? distribution/reference 2023-08-31 21:53:40 -04:00
logo
pkg DRA scheduler: stop allocating before deallocation 2023-09-11 10:56:17 +02:00
plugin api: introduce separate VolumeResourceRequirements struct 2023-08-21 15:31:28 +02:00
staging Merge pull request #120438 from ritazh/kmsv2-metrics-apiserverid 2023-09-09 16:46:09 -07:00
test Merge pull request #120406 from wlq1212/cheanup/framework/timeout 2023-09-10 21:10:10 -07:00
third_party verify: nicer failure message rendering in Prow 2023-06-02 15:39:27 +02:00
vendor Merge pull request #120008 from skitt/drop-intstr-ptr-wrappers 2023-09-09 07:24:09 -07:00
.generated_files
.gitattributes gitattributes: json and yaml files LF line endings 2022-12-22 11:36:07 +00:00
.gitignore Add go.work and go.work.sum to .gitignore 2023-05-05 11:16:23 -04:00
.go-version [go] Bump images, dependencies and versions to go 1.21.1 2023-09-07 14:56:56 +02:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
go.mod Merge pull request #120008 from skitt/drop-intstr-ptr-wrappers 2023-09-09 07:24:09 -07:00
go.sum Merge pull request #120008 from skitt/drop-intstr-ptr-wrappers 2023-09-09 07:24:09 -07:00
LICENSE
Makefile
OWNERS
OWNERS_ALIASES OWNERS_ALIASES: add tzneal to sig-node-reviewer 2023-08-30 11:53:23 -05:00
README.md Merge pull request #116709 from R3DRUN3/master 2023-05-03 12:02:09 -07:00
SECURITY_CONTACTS
SUPPORT.md

Kubernetes (K8s)

CII Best Practices Go Report Card GitHub release (latest SemVer)


Kubernetes, also known as K8s, is an open source system for managing containerized applications across multiple hosts. It provides basic mechanisms for the deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If your company wants to help shape the evolution of technologies that are container-packaged, dynamically scheduled, and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using K8s

See our documentation on kubernetes.io.

Take a free course on Scalable Microservices with Kubernetes.

To use Kubernetes code as a library in other applications, see the list of published components. Use of the k8s.io/kubernetes module or k8s.io/kubernetes/... packages as libraries is not supported.

To start developing K8s

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
mkdir -p $GOPATH/src/k8s.io
cd $GOPATH/src/k8s.io
git clone https://github.com/kubernetes/kubernetes
cd kubernetes
make
You have a working Docker environment.
git clone https://github.com/kubernetes/kubernetes
cd kubernetes
make quick-release

For the full story, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide, and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Community Meetings

The Calendar has the list of all the meetings in the Kubernetes community in a single location.

Adopters

The User Case Studies website has real-world use cases of organizations across industries that are deploying/migrating to Kubernetes.

Governance

Kubernetes project is governed by a framework of principles, values, policies and processes to help our community and constituents towards our shared goals.

The Kubernetes Community is the launching point for learning about how we organize ourselves.

The Kubernetes Steering community repo is used by the Kubernetes Steering Committee, which oversees governance of the Kubernetes project.

Roadmap

The Kubernetes Enhancements repo provides information about Kubernetes releases, as well as feature tracking and backlogs.