Skip to content

Commit

Permalink
add explaination on bridge mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Landstrom committed Sep 4, 2024
1 parent 777abe4 commit 9a42f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/self-hosted/helm-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
- `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

This comment has been minimized.

Copy link
@pchico83

pchico83 Sep 4, 2024

Contributor

@codyjlandstrom where did you get this explanation from? my understanding is that "bridge" mode allows users to open ports during the build executions without having port-collisions between concurrent builds

This comment has been minimized.

Copy link
@codyjlandstrom

codyjlandstrom Sep 4, 2024

Contributor

I compiled this from reading the bridge mode PR and some referenced materials. But the docs on this are very light.
Let me edit to just reference the port contention issue that is solves


```yaml
buildkit:
Expand Down

0 comments on commit 9a42f44

Please sign in to comment.