From 6b1d93c91bde71e7103d5377b86553d766b9c191 Mon Sep 17 00:00:00 2001 From: Akash Gupta Date: Fri, 22 Nov 2024 17:14:37 +0530 Subject: [PATCH] update default buildkit-values (#818) --- charts/tfy-buildkitd-service/Chart.yaml | 2 +- charts/tfy-buildkitd-service/README.md | 74 +++++++++++++++++++++++- charts/tfy-buildkitd-service/values.yaml | 10 ++-- 3 files changed, 79 insertions(+), 7 deletions(-) diff --git a/charts/tfy-buildkitd-service/Chart.yaml b/charts/tfy-buildkitd-service/Chart.yaml index 5c2a13ad3..b06c0ef39 100644 --- a/charts/tfy-buildkitd-service/Chart.yaml +++ b/charts/tfy-buildkitd-service/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: tfy-buildkitd-service description: Buildkitd service chart type: application -version: 0.2.1-rc.1 +version: 0.2.1 appVersion: "0.16.0" maintainers: - name: truefoundry diff --git a/charts/tfy-buildkitd-service/README.md b/charts/tfy-buildkitd-service/README.md index 81a8eff31..02c722c50 100644 --- a/charts/tfy-buildkitd-service/README.md +++ b/charts/tfy-buildkitd-service/README.md @@ -3,7 +3,79 @@ Tfy-buildkitd-service is a Helm chart provided by TrueFoundry that facilitates t ## Parameters -#### Parameters for tfyBuildkitdService +###### Parameters for tfyBuildkitdService + +| Name | Description | Value | +| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | +| `replicaCount` | Number of replicas of Value kept for future use, kept 1 | `1` | +| `image.repository` | tfyBuildkitdService repository | `moby/buildkit` | +| `image.pullPolicy` | Pull policy for tfyBuildkitdService | `IfNotPresent` | +| `image.tag` | Image tag whose default is the chart appVersion. | `v0.16.0` | +| `storage.accessModes` | Access mode for tfyBuildkitdService | `["ReadWriteOnce"]` | +| `storage.storageClassName` | Storage class name for tfyBuildkitdService | `""` | +| `storage.size` | Size of the storage for tfyBuildkitdService | `200Gi` | +| `imagePullSecrets` | Secrets to pull images | `[]` | +| `nameOverride` | String to override partial name passed in helm install command | `""` | +| `fullnameOverride` | String to override full name passed in helm install command | `""` | +| `serviceAccount.create` | Bool to enable serviceAccount creation | `true` | +| `serviceAccount.annotations` | Annotations to add to the serviceAccount | `{}` | +| `serviceAccount.name` | Name of the serviceAccount to use. If not set and create is true, a name is generated using the fullname template | `""` | +| `podAnnotations` | Annotations to be added to the pod | `{}` | +| `podSecurityContext` | Security context for the pod | `{}` | +| `securityContext.privileged` | Security Context for the tfyBuildkitdServiceProxy container | `true` | +| `service.type` | Type for tfyBuildkitdService Service | `ClusterIP` | +| `service.port` | Port for tfyBuildkitdService service | `1234` | +| `resources.limits.cpu` | CPU resource limits for tfyBuildkitdService container. | `2500m` | +| `resources.limits.memory` | Memory Resource limits for tfyBuildkitdService container. | `8Gi` | +| `resources.limits.ephemeral-storage` | Ephemeral Storage limits for tfyBuildkitdService container. | `100Mi` | +| `resources.requests.cpu` | CPU resource requests for tfyBuildkitdService container. | `2500m` | +| `resources.requests.memory` | Memory Resource requests for tfyBuildkitdService container. | `8Gi` | +| `resources.requests.ephemeral-storage` | Ephemeral Storage requests for tfyBuildkitdService container. | `100Mi` | +| `extraVolumes` | List of Volumes to attach to tfyBuildkitdService container | `[]` | +| `extraVolumeMounts` | List of Volume Mounts to attach to tfyBuildkitdService container | `[]` | +| `extraEnvs` | List of Environment Variables to attach to tfyBuildkitdService container | `[]` | +| `nodeSelector` | Parameters to select for scheduling of pod on a node | `{}` | +| `tolerations` | Taints that pod can tolerate | `[]` | +| `affinity` | Affinity rules for pod scheduling on a node | `{}` | +| `tls.buildkitDaemonCertsSecretName` | Name of secret containing the buildkit daemon certs | `tfy-buildkit-daemon-certs` | +| `tls.buildkitClientCertsSecretName` | Name of secret containing the buildkit client certs | `tfy-buildkit-client-certs` | +| `tls.enabled` | Enable TLS for buildkitd | `false` | + +| Name | Description | Value | +| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | +| `replicaCount` | Number of replicas of Value kept for future use, kept 1 | `1` | +| `image.repository` | tfyBuildkitdService repository | `moby/buildkit` | +| `image.pullPolicy` | Pull policy for tfyBuildkitdService | `IfNotPresent` | +| `image.tag` | Image tag whose default is the chart appVersion. | `v0.16.0` | +| `storage.accessModes` | Access mode for tfyBuildkitdService | `["ReadWriteOnce"]` | +| `storage.storageClassName` | Storage class name for tfyBuildkitdService | `""` | +| `storage.size` | Size of the storage for tfyBuildkitdService | `200Gi` | +| `imagePullSecrets` | Secrets to pull images | `[]` | +| `nameOverride` | String to override partial name passed in helm install command | `""` | +| `fullnameOverride` | String to override full name passed in helm install command | `""` | +| `serviceAccount.create` | Bool to enable serviceAccount creation | `true` | +| `serviceAccount.annotations` | Annotations to add to the serviceAccount | `{}` | +| `serviceAccount.name` | Name of the serviceAccount to use. If not set and create is true, a name is generated using the fullname template | `""` | +| `podAnnotations` | Annotations to be added to the pod | `{}` | +| `podSecurityContext` | Security context for the pod | `{}` | +| `securityContext.privileged` | Security Context for the tfyBuildkitdServiceProxy container | `true` | +| `service.type` | Type for tfyBuildkitdService Service | `ClusterIP` | +| `service.port` | Port for tfyBuildkitdService service | `1234` | +| `resources.limits.cpu` | CPU resource limits for tfyBuildkitdService container. | `2000m` | +| `resources.limits.memory` | Memory Resource limits for tfyBuildkitdService container. | `8Gi` | +| `resources.limits.ephemeral-storage` | Ephemeral Storage limits for tfyBuildkitdService container. | `100Mi` | +| `resources.requests.cpu` | CPU resource requests for tfyBuildkitdService container. | `2000m` | +| `resources.requests.memory` | Memory Resource requests for tfyBuildkitdService container. | `8Gi` | +| `resources.requests.ephemeral-storage` | Ephemeral Storage requests for tfyBuildkitdService container. | `100Mi` | +| `extraVolumes` | List of Volumes to attach to tfyBuildkitdService container | `[]` | +| `extraVolumeMounts` | List of Volume Mounts to attach to tfyBuildkitdService container | `[]` | +| `extraEnvs` | List of Environment Variables to attach to tfyBuildkitdService container | `[]` | +| `nodeSelector` | Parameters to select for scheduling of pod on a node | `{}` | +| `tolerations` | Taints that pod can tolerate | `[]` | +| `affinity` | Affinity rules for pod scheduling on a node | `{}` | +| `tls.buildkitDaemonCertsSecretName` | Name of secret containing the buildkit daemon certs | `tfy-buildkit-daemon-certs` | +| `tls.buildkitClientCertsSecretName` | Name of secret containing the buildkit client certs | `tfy-buildkit-client-certs` | +| `tls.enabled` | Enable TLS for buildkitd | `false` | | Name | Description | Value | | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | diff --git a/charts/tfy-buildkitd-service/values.yaml b/charts/tfy-buildkitd-service/values.yaml index c8cd7359c..e6a3cc11d 100644 --- a/charts/tfy-buildkitd-service/values.yaml +++ b/charts/tfy-buildkitd-service/values.yaml @@ -28,7 +28,7 @@ buildkitConfig: | enabled = true gc = true gckeepstorage = "107400000000" - max-parallelism = 4 + max-parallelism = 3 [[worker.oci.gcpolicy]] @@ -119,12 +119,12 @@ service: ## resources: limits: - cpu: 3500m - memory: 13.2Gi + cpu: 2500m + memory: 8Gi ephemeral-storage: 100Mi requests: - cpu: 3500m - memory: 13.2Gi + cpu: 2500m + memory: 8Gi ephemeral-storage: 100Mi ## @param extraVolumes List of Volumes to attach to tfyBuildkitdService container