Production-Grade Container Scheduling and Management
Go to file
Francesco Romani 23147ff4b3 e2e: node: devplugin: tolerate node readiness flip
In the AfterEach check of the e2e node device plugin tests,
the tests want really bad to clean up after themselves:
- delete the sample device plugin
- restart again the kubelet
- ensure that after the restart, no stale sample devices
  (provided  by the sample device plugin) are reported anymore.

We observed that in the AfterEach block of these e2e tests
we have quite reliably a flip/flop of the kubelet readiness
state, possibly related to a race with/ a slow runtime/PLEG check.

What happens is that the kubelet readiness state is true,
but goes false for a quick interval and then goes true again
and it's pretty stable after that (observed adding more logs
to the check loop).

The key factor here is the function `getLocalNode` aborts the
test (as in `framework.ExpectNoError`) if the node state is
not ready. So any occurrence of this scenario, even if it
is transient, will cause a test failure. I believe this will
make the e2e test unnecessarily fragile without making it more
correct.

For the purpose of the test we can tolerate this kind of glitches,
with kubelet flip/flopping the ready state, granted that we meet
eventually the final desired condition on which the node reports
ready AND reports no sample devices present - which was the condition
the code was trying to check.

So, we add a variant of `getLocalNode`, which just fetches the
node object the e2e_node framework created, alongside to a flag
reporting the node readiness. The new helper does not make
implicitly the test abort if the node is not ready, just bubbles
up this information.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-16 14:22:25 +02:00
.github Fix typo in bug report template 2022-02-28 12:34:43 +03:00
api generated: remove no longer served APIs 2022-05-10 14:41:14 -04:00
build Update Go to 1.18.2 2022-05-14 00:57:15 +02:00
CHANGELOG Clean up wrong release note 2022-05-06 21:54:01 +03:00
cluster Add OneOf 2022-05-14 11:54:37 +05:30
cmd kubeadm: container runtime is by default docker in kubelet v1.23 2022-05-14 18:31:48 +08:00
docs
hack Merge pull request #109729 from MikeSpreitzer/wrap-weighted-histograms 2022-05-12 12:32:32 -07:00
LICENSES Correctly attribute some datastructures from gotestsum repository 2022-04-01 14:49:15 -04:00
logo
pkg Unified v1/event NewREST function with other 2022-05-15 12:44:59 +08:00
plugin Remove PodSecurityPolicy admission plugin 2022-05-04 16:00:56 -04:00
staging Merge pull request #109651 from ash2k/ash2k/spdy-cleanup 2022-05-14 21:00:16 -07:00
test e2e: node: devplugin: tolerate node readiness flip 2022-05-16 14:22:25 +02:00
third_party Merge pull request #109244 from alexzielenski/clean-third-party-forks 2022-05-03 19:29:35 -07:00
vendor Merge pull request #109729 from MikeSpreitzer/wrap-weighted-histograms 2022-05-12 12:32:32 -07:00
.generated_files
.gitattributes
.gitignore Add the last zz_generated.openapi.go file 2022-02-28 10:17:54 -08:00
.golangci.yaml hack: integrate logcheck into golangci-lint 2022-03-24 11:21:03 +01:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
go.mod dependencies: logr and zapr v1.2.3 2022-05-06 15:16:56 +02:00
go.sum dependencies: logr and zapr v1.2.3 2022-05-06 15:16:56 +02:00
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Add sanposhiho to SIG Scheduling reviewers 2022-05-08 12:39:47 +09:00
README.md update k8s url 2022-05-02 20:55:55 +08:00
SECURITY_CONTACTS
SUPPORT.md update k8s url 2022-05-02 20:55:55 +08:00

Kubernetes (K8s)

GoPkg Widget CII Best Practices


Kubernetes, also known as K8s, is an open source system for managing containerized applications across multiple hosts. It provides basic mechanisms for 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.

Try our interactive tutorial.

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 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.