Production-Grade Container Scheduling and Management
Go to file
Patrick Ohly 327a12cd08 e2e: share /dev with host in hostpath driver deployment
This is needed for raw block volumes. It mirrors a change made in the upstream
deployment in https://github.com/kubernetes-csi/csi-driver-host-path/pull/109

Raw block volumes use loop devices under the hood. "losetup --find
--show" uses LOOP_CTL_GET_FREE to get a free loop device. It then
expects to have the corresponding /dev/loopX already available. When
/dev inside the container is a static tmpfs which doesn't already have
those /dev/loop* devices (*) the new device fails to show up,
resulting in:

I1028 13:25:19.937846       1 server.go:117] GRPC call: /csi.v1.Controller/CreateVolume
I1028 13:25:19.938083       1 server.go:118] GRPC request: {"accessibility_requirements":{"preferred":[{"segments":{"topology.hostpath.csi/node":"pmem-csi-pmem-govm-worker3"}}],"requisite":[{"segments":{"topology.hostpath.csi/node":"pmem-csi-pmem-govm-worker3"}}]},"capacity_range":{"required_bytes":5368709120},"name":"pvc-24985a49-5638-4bf6-b789-bb99a28d1073","volume_capabilities":[{"AccessType":{"Block":{}},"access_mode":{"mode":1}}]}
I1028 13:25:19.961124       1 volume_path_handler_linux.go:41] Creating device for path: /csi-data-dir/635c6569-f986-11e9-baa6-0242ac110004
I1028 13:25:20.391472       1 volume_path_handler_linux.go:75] Failed device create command for path: /csi-data-dir/635c6569-f986-11e9-baa6-0242ac110004 exit status 1 losetup: /csi-data-dir/635c6569-f986-11e9-baa6-0242ac110004: failed to set up loop device: No such file or directory
E1028 13:25:20.392916       1 server.go:121] GRPC error: rpc error: code = Internal desc = failed to create volume 635c6569-f986-11e9-baa6-0242ac110004: failed to attach device /csi-data-dir/635c6569-f986-11e9-baa6-0242ac110004: exit status 1

(*) It seems that the static tmpfs gets populated by Docker based on
what's currently on the host when the container starts. That would
explain why it worked in the Kubernetes Prow testing - the host must
have had enough loop devices already defined.
2019-10-29 08:52:12 +01:00
.github Fix incorrect whitespaces plural 2019-10-24 21:56:18 -04:00
api Merge pull request #84091 from robscott/endpointslice-fqdn 2019-10-24 16:56:05 -07:00
build Fix base image discrepancy when building kubemark. 2019-10-24 10:50:10 +02:00
cluster Merge pull request #83987 from wenjiaswe/etcd_client_3_4_2 2019-10-25 08:29:39 -07:00
cmd Merge pull request #84297 from liu-cong/custompred 2019-10-26 09:57:23 -07:00
docs
Godeps Pin dependencies and update vendors 2019-10-24 14:09:24 -07:00
hack Merge pull request #83711 from tanjunchen/fix-staticcheck-test/e2e/network 2019-10-26 02:23:22 -07:00
logo
pkg When schedule begins, run snapshot before prefilter plugins 2019-10-28 14:59:42 +08:00
plugin Merge pull request #84282 from yutedz/rm-csi-rbac-roles 2019-10-24 22:56:14 -07:00
staging Merge pull request #84395 from RainbowMango/pr_fix_should_hide_version 2019-10-27 00:59:24 -07:00
test e2e: share /dev with host in hostpath driver deployment 2019-10-29 08:52:12 +01:00
third_party add myself to typecheck / go-srcimporter owners, move rmmh to emeritus 2019-10-16 15:17:22 -07:00
translations
vendor Merge pull request #83987 from wenjiaswe/etcd_client_3_4_2 2019-10-25 08:29:39 -07:00
.bazelrc
.bazelversion Add .bazelversion file 2019-09-19 08:57:12 +02:00
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md update spelling mistakes 2019-09-05 17:59:36 +08:00
CHANGELOG-1.5.md
CHANGELOG-1.6.md
CHANGELOG-1.7.md
CHANGELOG-1.8.md
CHANGELOG-1.9.md
CHANGELOG-1.10.md typos in old changelogs releases 2019-10-07 13:17:16 +02:00
CHANGELOG-1.11.md typos in old changelogs releases 2019-10-07 13:17:16 +02:00
CHANGELOG-1.12.md
CHANGELOG-1.13.md Merge pull request #83563 from cpanato/typos_changelog 2019-10-25 09:53:53 -07:00
CHANGELOG-1.14.md Merge pull request #83563 from cpanato/typos_changelog 2019-10-25 09:53:53 -07:00
CHANGELOG-1.15.md Merge pull request #83563 from cpanato/typos_changelog 2019-10-25 09:53:53 -07:00
CHANGELOG-1.16.md Merge pull request #83563 from cpanato/typos_changelog 2019-10-25 09:53:53 -07:00
CHANGELOG-1.17.md Update CHANGELOG-1.17.md for v1.17.0-alpha.3. 2019-10-22 18:19:02 +00:00
CHANGELOG.md Add CHANGELOG-1.17.md to CHANGELOG.md 2019-10-12 22:23:15 +08:00
code-of-conduct.md
CONTRIBUTING.md
go.mod Pin dependencies and update vendors 2019-10-24 14:09:24 -07:00
go.sum Pin dependencies and update vendors 2019-10-24 14:09:24 -07:00
LICENSE
Makefile
Makefile.generated_files
OWNERS Move jbeda to emeritus status. 2019-10-11 17:46:18 -04:00
OWNERS_ALIASES Merge pull request #83866 from mrbobbytables/update-owners-aliases 2019-10-23 12:50:55 -07:00
README.md Merge pull request #82157 from lmaffeo/master 2019-09-25 11:04:28 -07:00
SECURITY_CONTACTS
SUPPORT.md
WORKSPACE

Kubernetes

GoDoc Widget CII Best Practices


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

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

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.

Analytics