Skip to content

Commit 8ce218f

Browse files
authored
Merge pull request #19726 from Moleus/feat-ephemeral-storage-opts
buildx: kubernetes: add ephemeral-storage options to kuberentes-driver
2 parents 898c8fd + a2fc415 commit 8ce218f

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

content/build/drivers/kubernetes.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,27 @@ $ docker buildx create \
2929
The following table describes the available driver-specific options that you
3030
can pass to `--driver-opt`:
3131

32-
| Parameter | Type | Default | Description |
33-
| ----------------- | ----------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
34-
| `image` | String | | Sets the image to use for running BuildKit. |
35-
| `namespace` | String | Namespace in current Kubernetes context | Sets the Kubernetes namespace. |
36-
| `replicas` | Integer | 1 | Sets the number of Pod replicas to create. See [scaling BuildKit][1] |
37-
| `requests.cpu` | CPU units | | Sets the request CPU value specified in units of Kubernetes CPU. For example `requests.cpu=100m` or `requests.cpu=2` |
38-
| `requests.memory` | Memory size | | Sets the request memory value specified in bytes or with a valid suffix. For example `requests.memory=500Mi` or `requests.memory=4G` |
39-
| `limits.cpu` | CPU units | | Sets the limit CPU value specified in units of Kubernetes CPU. For example `requests.cpu=100m` or `requests.cpu=2` |
40-
| `limits.memory` | Memory size | | Sets the limit memory value specified in bytes or with a valid suffix. For example `requests.memory=500Mi` or `requests.memory=4G` |
41-
| `default-load` | Boolean | `false` | Automatically load images to the Docker Engine image store. |
42-
| `nodeselector` | CSV string | | Sets the pod's `nodeSelector` label(s). See [node assignment][2]. |
43-
| `annotation` | CSV string | | Sets additional annotations on the deployments and pods. |
44-
| `labels` | CSV string | | Sets additional labels on the deployments and pods. |
45-
| `tolerations` | CSV string | | Configures the pod's taint toleration. See [node assignment][2]. |
46-
| `serviceaccount` | String | | Sets the pod's `serviceAccountName`. |
47-
| `rootless` | `true`,`false` | `false` | Run the container as a non-root user. See [rootless mode][3]. |
48-
| `loadbalance` | `sticky`,`random` | `sticky` | Load-balancing strategy. If set to `sticky`, the pod is chosen using the hash of the context path. |
49-
| `qemu.install` | `true`,`false` | | Install QEMU emulation for multi platforms support. See [QEMU][4]. |
50-
| `qemu.image` | String | `tonistiigi/binfmt:latest` | Sets the QEMU emulation image. See [QEMU][4]. |
32+
| Parameter | Type | Default | Description |
33+
| ---------------------------- | ----------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
34+
| `image` | String | | Sets the image to use for running BuildKit. |
35+
| `namespace` | String | Namespace in current Kubernetes context | Sets the Kubernetes namespace. |
36+
| `default-load` | Boolean | `false` | Automatically load images to the Docker Engine image store. |
37+
| `replicas` | Integer | 1 | Sets the number of Pod replicas to create. See [scaling BuildKit][1] |
38+
| `requests.cpu` | CPU units | | Sets the request CPU value specified in units of Kubernetes CPU. For example `requests.cpu=100m` or `requests.cpu=2` |
39+
| `requests.memory` | Memory size | | Sets the request memory value specified in bytes or with a valid suffix. For example `requests.memory=500Mi` or `requests.memory=4G` |
40+
| `requests.ephemeral-storage` | Storage size | | Sets the request ephemeral-storage value specified in bytes or with a valid suffix. For example `requests.ephemeral-storage=2Gi` |
41+
| `limits.cpu` | CPU units | | Sets the limit CPU value specified in units of Kubernetes CPU. For example `requests.cpu=100m` or `requests.cpu=2` |
42+
| `limits.memory` | Memory size | | Sets the limit memory value specified in bytes or with a valid suffix. For example `requests.memory=500Mi` or `requests.memory=4G` |
43+
| `limits.ephemeral-storage` | Storage size | | Sets the limit ephemeral-storage value specified in bytes or with a valid suffix. For example `requests.ephemeral-storage=100M` |
44+
| `nodeselector` | CSV string | | Sets the pod's `nodeSelector` label(s). See [node assignment][2]. |
45+
| `annotation` | CSV string | | Sets additional annotations on the deployments and pods. |
46+
| `labels` | CSV string | | Sets additional labels on the deployments and pods. |
47+
| `tolerations` | CSV string | | Configures the pod's taint toleration. See [node assignment][2]. |
48+
| `serviceaccount` | String | | Sets the pod's `serviceAccountName`. |
49+
| `rootless` | `true`,`false` | `false` | Run the container as a non-root user. See [rootless mode][3]. |
50+
| `loadbalance` | `sticky`,`random` | `sticky` | Load-balancing strategy. If set to `sticky`, the pod is chosen using the hash of the context path. |
51+
| `qemu.install` | `true`,`false` | | Install QEMU emulation for multi platforms support. See [QEMU][4]. |
52+
| `qemu.image` | String | `tonistiigi/binfmt:latest` | Sets the QEMU emulation image. See [QEMU][4]. |
5153

5254
[1]: #scaling-buildkit
5355
[2]: #node-assignment
@@ -66,7 +68,7 @@ is configurable using the following driver options:
6668
only creates a single pod. Increasing the number of replicas lets you take
6769
advantage of multiple nodes in your cluster.
6870

69-
- `requests.cpu`, `requests.memory`, `limits.cpu`, `limits.memory`
71+
- `requests.cpu`, `requests.memory`, `requests.ephemeral-storage`, `limits.cpu`, `limits.memory`, `limits.ephemeral-storage`
7072

7173
These options allow requesting and limiting the resources available to each
7274
BuildKit pod according to the official Kubernetes documentation

0 commit comments

Comments
 (0)