Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add network.mode configuration option for buildkit service #819

Merged
merged 3 commits into from
Sep 4, 2024

Conversation

jLopezbarb
Copy link
Contributor

This pull request adds a new configuration option, network.mode, for the buildkit service. This option controls the networking environment for containers during the build process and can be set to auto, host, none, or bridge.

Copy link

netlify bot commented Sep 4, 2024

Deploy Preview for okteto-docs ready!

Name Link
🔨 Latest commit e9d6402
🔍 Latest deploy log https://app.netlify.com/sites/okteto-docs/deploys/66d87a27a933930008c35f40
😎 Deploy Preview https://deploy-preview-819--okteto-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pchico83 pchico83 mentioned this pull request Sep 4, 2024
@@ -209,7 +209,7 @@ The build service. It's used in combination with `okteto build` to build contain
- `persistence.cache`: The size (in Mi) of the buildkit cache to store image caches. It should be around 30Gi smaller than `storage.size`. Defaults to 500Gi.
- `tolerations`: List of tolerations to be added to the buildkit service Pods. This list of tolerations will be applied in conjunction with any tolerations set in [`tolerations.buildPool`](self-hosted/helm-configuration.mdx#tolerations) until deprecation of `tolerations.buildPool`. If not set, the buildkit Pods will inherit the tolerations list set in [`globals.tolerations.okteto`](self-hosted/helm-configuration.mdx#globals).
- `nodeSelectors`: Dictionary of node selectors to be added to the buildkit service Pods. This helps you match Pods to nodes whose labels match the node selector. This list of node selectors will be applied in conjunction with the node selectors set by [`tolerations.buildPool`](self-hosted/helm-configuration.mdx#tolerations) until deprecation of `tolerations.buildPool`. If not set, the buildkit Pods will inherit the node selectors dictionary set in [`globals.nodeSelectors.okteto`](self-hosted/helm-configuration.mdx#globals).
- `network.mode`: Controls the networking environment for containers during the build process. Defaults to `auto` but can be set to `host`, `none`, or `bridge`. Bridge mode allows you to control which stages of a multi-stage Docker build have access to the network. This can be useful in complex build environments where security, efficiency, and consistency are priorities
- `network.mode`: Controls the networking environment for containers during the build process. Defaults to `auto` but can be set to `host`, `none`, or `bridge`. Bridge mode can be useful for preventing port collisions in concurrent builds by isolating network environments.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pchico83 Does this update sound ok?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, thanks!

@codyjlandstrom codyjlandstrom merged commit 923021f into main Sep 4, 2024
4 checks passed
@codyjlandstrom codyjlandstrom deleted the jlo/add-buildkit-network-mode branch September 4, 2024 16:45
codyjlandstrom added a commit that referenced this pull request Sep 6, 2024
* add 1.24 release notes

* add note about developer quickstart guide

* start to address PR feedback

* Add network.mode configuration option for buildkit service (#819)

* feat: Add network.mode configuration option for buildkit service

Signed-off-by: Javier Lopez <[email protected]>

* add explaination on bridge mode

* fix details on bridge mode

---------

Signed-off-by: Javier Lopez <[email protected]>
Co-authored-by: Cody Landstrom <[email protected]>

* add 1.24 release notes

* add note about developer quickstart guide

* start to address PR feedback

* addressing more pr feedback

* additional PR feedback

* clean up last pr feedback

---------

Signed-off-by: Javier Lopez <[email protected]>
Co-authored-by: Cody Landstrom <[email protected]>
Co-authored-by: Javier López Barba <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants