Skip to content

Commit

Permalink
Add network.mode configuration option for buildkit service (#819)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
jLopezbarb and Cody Landstrom authored Sep 4, 2024
1 parent 283a660 commit 923021f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/content/self-hosted/helm-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +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 can be useful for preventing port collisions in concurrent builds by isolating network environments.

```yaml
buildkit:
Expand Down

0 comments on commit 923021f

Please sign in to comment.