Skip to content

Add requests.ephemeral-storage to to kubernetes driver's options #2369

@moleus

Description

@moleus

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions