-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(k8s): add cluster-buildkit buildMode
This adds a new `cluster-buildkit` buildMode to the kubernetes provider, which uses the [buildkit](https://github.com/moby/buildkit) project. It also works differently to the existing `cluster-docker` and `kaniko` build modes, in that it doesn't require any cluster-wide components, such as the ever-frustrating NFS provisioner. When configured, a `garden-buildkit` Deployment with an ephemeral volume is deployed on-demand to _the project namespace_. This greatly simplifies administration and operation, while still offering a performance benefit compared to `kaniko`, and it still uses the deployment registry (in-cluster or otherwise) as a shared cache between users/namespaces. It can also be configured to run in "rootless" mode, i.e. run without elevated privileges. This has some caveats (see the buildkit docs for details) but offers a much improved security profile compared to the privileged Docker and Kaniko builders.
- Loading branch information
Showing
45 changed files
with
1,626 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.