Description
k8s allows specifying ephemeral-storage requests for container.
Currenlty, there is no way to set ephemeral storage requests for buildkitd container using kubernetes-driver.
As far as I understand this field can be added to DeploymentOpt and then used to construct Deployment
|
type DeploymentOpt struct { |
|
Namespace string |
|
Name string |
|
Image string |
|
Replicas int |
|
ServiceAccountName string |
|
|
|
// Qemu |
|
Qemu struct { |
|
// when true, will install binfmt |
|
Install bool |
|
Image string |
|
} |
|
|
|
BuildkitFlags []string |
|
// files mounted at /etc/buildkitd |
|
ConfigFiles map[string][]byte |
|
|
|
Rootless bool |
|
NodeSelector map[string]string |
|
CustomAnnotations map[string]string |
|
CustomLabels map[string]string |
|
Tolerations []corev1.Toleration |
|
RequestsCPU string |
|
RequestsMemory string |
|
LimitsCPU string |
|
LimitsMemory string |
|
Platforms []v1.Platform |
|
} |
|
|
We can add both requests.ephemeral-storage and limits.ephemeral-storage fields
Description
k8s allows specifying ephemeral-storage requests for container.
Currenlty, there is no way to set ephemeral storage requests for
buildkitdcontainer usingkubernetes-driver.As far as I understand this field can be added to DeploymentOpt and then used to construct Deployment
buildx/driver/kubernetes/manifest/manifest.go
Lines 17 to 46 in c690d46
We can add both
requests.ephemeral-storageandlimits.ephemeral-storagefields