buildbarn

by slamdev

Helm chartv0.0.1App 2022-02-12

Helm chart to deploy [buildbarn](https://github.com/buildbarn).

About this chart

buildbarn

Helm chart to deploy buildbarn.

Homepage: https://github.com/slamdev/helm-charts/tree/master/charts/buildbarn

Maintainers

NameEmailUrl
slamdev[email protected]

Values

KeyTypeDefaultDescription
browser.affinityobject{}affinity for scheduler pod assignment
browser.confstring"local common = import 'common.libsonnet';\n{\n global: common.global,\n blobstore: common.blobstore,\n maximumMessageSizeBytes: common.maximumMessageSizeBytes,\n listenAddress: common.httpListenAddress,\n authorizer: common.allowAllauthorizerConfiguration,\n}"config https://github.com/buildbarn/bb-browser/blob/547095cf8540c671b0f2291b1e6f76081e47a9fc/pkg/proto/configuration/bb_browser/bb_browser.proto
browser.containerPortint80port exposed by container
browser.enabledbooltrueenable browser component
browser.envlist[]environment variables for the deployment
browser.image.pullPolicystring"IfNotPresent"image pull policy
browser.image.repositorystring"buildbarn/bb-browser"image repository
browser.image.tagstring"20211222T121123Z-547095c"image tag
browser.ingress.annotationsobject{}ingress annotations
browser.ingress.enabledboolfalseenables Ingress
browser.ingress.hostslist[]ingress accepted hostnames
browser.ingress.tlslist[]ingress TLS configuration
browser.livenessProbe.httpGet.pathstring"/-/healthy"path for liveness probe
browser.livenessProbe.httpGet.portstring"http-metrics"port for liveness probe
browser.nodeSelectorobject{}node for scheduler pod assignment
browser.podMonitor.additionalLabelsobject{}additional labels for pod monitor
browser.podMonitor.enabledboolfalsePodMonitor CRD is created for a prometheus operator
browser.podSecurityContextobject{}specifies security settings for a pod
browser.readinessProbe.httpGet.pathstring"/-/healthy"path for readiness probe
browser.readinessProbe.httpGet.portstring"http-metrics"port for readiness probe
browser.replicaCountint1number of replicas for the deployment.
browser.resourcesobject{}custom resource configuration
browser.securityContextobject{}specifies security settings for a container
browser.service.namestring"http"service name
browser.service.portint80service port
browser.service.typestring"ClusterIP"service type
browser.tolerationslist[]tolerations for scheduler pod assignment
browser.volumeMountslist[]volume mounts
browser.volumeslist[]volumes
commonConfstring"{\n global: {\n diagnostics_http_server: {\n listen_address: ':8080',\n enable_prometheus: true,\n },\n setUmask: { umask: 0 },\n },\n allowAllauthorizerConfiguration: {\n allow: {},\n },\n blobstore: {\n contentAddressableStorage: {\n sharding: {\n hashInitialization: 11946695773637837490,\n shards: [\n {\n backend: { grpc: { address: 'buildbarn-storage-0.buildbarn-storage:8981' } },\n weight: 1,\n },\n {\n backend: { grpc: { address: 'buildbarn-storage-1.buildbarn-storage:8981' } },\n weight: 1,\n },\n ],\n },\n },\n actionCache: {\n completenessChecking: {\n sharding: {\n hashInitialization: 14897363947481274433,\n shards: [\n {\n backend: { grpc: { address: 'buildbarn-storage-0.buildbarn-storage:8981' } },\n weight: 1,\n },\n {\n backend: { grpc: { address: 'buildbarn-storage-1.buildbarn-storage:8981' } },\n weight: 1,\n },\n ],\n },\n },\n },\n },\n # Remember to set your browserUrl to the ingress of the browser deployment\n browserUrl: 'http://buildbarn-browser:80',\n maximumMessageSizeBytes: 16 * 1024 * 1024,\n httpListenAddress: ':80'\n}"
containerMetricsPortint8080
frontend.affinityobject{}affinity for scheduler pod assignment
frontend.confstring"local common = import 'common.libsonnet';\n{\n global: common.global,\n blobstore: common.blobstore,\n grpcServers: [{\n listenAddresses: [':8980'],\n authenticationPolicy: common.allowAllauthorizerConfiguration,\n }],\n schedulers: {\n '': { endpoint: { address: 'buildbarn-scheduler:8982' } },\n },\n maximumMessageSizeBytes: common.maximumMessageSizeBytes,\n contentAddressableStorageAuthorizers: {\n get: common.allowAllauthorizerConfiguration,\n put: common.allowAllauthorizerConfiguration,\n findMissing: common.allowAllauthorizerConfiguration,\n },\n actionCacheAuthorizers: {\n get: common.allowAllauthorizerConfiguration,\n put: common.allowAllauthorizerConfiguration,\n },\n execute_authorizer: common.allowAllauthorizerConfiguration,\n}"config https://github.com/buildbarn/bb-storage/blob/e5ee29d82ea7f458ad720a6ade4480e5838ab495/pkg/proto/configuration/bb_storage/bb_storage.proto
frontend.containerGrpcPortint8980grpc port exposed by container
frontend.containerHttpPortint80http port exposed by container
frontend.enabledbooltrueenable frontend component
frontend.envlist[]environment variables for the deployment
frontend.image.pullPolicystring"IfNotPresent"image pull policy
frontend.livenessProbe.httpGet.pathstring"/-/healthy"path for liveness probe
frontend.livenessProbe.httpGet.portstring"http-metrics"port for liveness probe
frontend.nodeSelectorobject{}node for scheduler pod assignment
frontend.podMonitor.additionalLabelsobject{}additional labels for pod monitor
frontend.podMonitor.enabledboolfalsePodMonitor CRD is created for a prometheus operator
frontend.podSecurityContextobject{}specifies security settings for a pod
frontend.readinessProbe.httpGet.pathstring"/-/healthy"path for readiness probe
frontend.readinessProbe.httpGet.portstring"http-metrics"port for readiness probe
frontend.replicaCountint1number of replicas for the deployment.
frontend.resourcesobject{}custom resource configuration
frontend.securityContextobject{}specifies security settings for a container
frontend.service.grpc.namestring"grpc"grpc service name
frontend.service.grpc.portint8980grpc service port
frontend.service.typestring"ClusterIP"service type
frontend.tolerationslist[]tolerations for scheduler pod assignment
frontend.volumeMountslist[]volume mounts
frontend.volumeslist[]volumes
fullnameOverridestring""full name of the chart.
imagePullSecretslist[]image pull secret for private images
nameOverridestring""override name of the chart
scheduler.affinityobject{}affinity for scheduler pod assignment
scheduler.confstring"local common = import 'common.libsonnet';\n{\n global: common.global,\n admin_http_listen_address: ':80',\n execute_authorizer: common.allowAllauthorizerConfiguration,\n clientGrpcServers: [{\n listenAddresses: [':8982'],\n authenticationPolicy: { allow: {} },\n }],\n workerGrpcServers: [{\n listenAddresses: [':8983'],\n authenticationPolicy: { allow: {} },\n }],\n contentAddressableStorage: common.blobstore.contentAddressableStorage,\n maximumMessageSizeBytes: common.maximumMessageSizeBytes,\n browserUrl: common.browserUrl,\n action_router: {\n simple: {\n platformKeyExtractor: { actionAndCommand: {} },\n invocationKeyExtractors: [{ toolInvocationId: {} }],\n initialSizeClassAnalyzer: {\n defaultExecutionTimeout: '1800s',\n maximumExecutionTimeout: '7200s',\n },\n },\n },\n platformQueueWithNoWorkersTimeout: '900s', \n}"config https://github.com/buildbarn/bb-remote-execution/blob/74b54e3e72c8ae507bbee1efe18aad1fbbe8de9e/pkg/proto/configuration/bb_scheduler/bb_scheduler.proto
scheduler.containerGrpcClientPortint8982client grpc port exposed by container
scheduler.containerGrpcWorkerPortint8983worker grpc port exposed by container
scheduler.containerHttpPortint80http port exposed by container
scheduler.enabledbooltrueenable scheduler component
scheduler.envlist[]environment variables for the deployment
scheduler.image.pullPolicystring"IfNotPresent"image pull policy
scheduler.image.repositorystring"buildbarn/bb-scheduler"image repository
scheduler.image.tagstring"20220211T141613Z-74b54e3"image tag
scheduler.livenessProbe.httpGet.pathstring"/-/healthy"path for liveness probe
scheduler.livenessProbe.httpGet.portstring"http-metrics"port for liveness probe
scheduler.nodeSelectorobject{}node for scheduler pod assignment
scheduler.podMonitor.additionalLabelsobject{}additional labels for pod monitor
scheduler.podMonitor.enabledboolfalsePodMonitor CRD is created for a prometheus operator
scheduler.podSecurityContextobject{}specifies security settings for a pod
scheduler.readinessProbe.httpGet.pathstring"/-/healthy"path for readiness probe
scheduler.readinessProbe.httpGet.portstring"http-metrics"port for readiness probe
scheduler.replicaCountint1number of replicas for the deployment.
scheduler.resourcesobject{}custom resource configuration
scheduler.securityContextobject{}specifies security settings for a container
scheduler.service.grpcClient.namestring"grpc-client"grpc client service name
scheduler.service.grpcClient.portint8982grpc client service port
scheduler.service.grpcWorker.namestring"grpc-worker"grpc worker service name
scheduler.service.grpcWorker.portint8983grpc worker service port
scheduler.service.http.namestring"http"http service name
scheduler.service.http.portint80http service port
scheduler.service.typestring"ClusterIP"service type
scheduler.tolerationslist[]tolerations for scheduler pod assignment
scheduler.volumeMountslist[]volume mounts
scheduler.volumeslist[]volumes
serviceAccount.annotationsobject{}annotations to add to the service account
serviceAccount.createboolfalsespecifies whether a service account should be created
serviceAccount.namestringnilthe name of the service account to use; if not set and create is true, a name is generated using the fullname template
storage.affinityobject{}affinity for scheduler pod assignment
storage.confstring"local common = import 'common.libsonnet';\n{\n global: common.global,\n blobstore: {\n contentAddressableStorage: {\n 'local': {\n keyLocationMapOnBlockDevice: {\n file: {\n path: '/cas/key_location_map',\n sizeBytes: 16 * 1024 * 1024,\n },\n },\n keyLocationMapMaximumGetAttempts: 8,\n keyLocationMapMaximumPutAttempts: 32,\n oldBlocks: 8,\n currentBlocks: 24,\n newBlocks: 3,\n blocksOnBlockDevice: {\n source: {\n file: {\n path: '/cas/blocks',\n sizeBytes: 10 * 1024 * 1024 * 1024,\n },\n },\n spareBlocks: 3,\n },\n persistent: {\n stateDirectoryPath: '/cas',\n minimumEpochInterval: '300s',\n },\n },\n },\n actionCache: {\n completenessChecking: {\n 'local': {\n keyLocationMapOnBlockDevice: {\n file: {\n path: '/ac/key_location_map',\n sizeBytes: 1024 * 1024,\n },\n },\n keyLocationMapMaximumGetAttempts: 8,\n keyLocationMapMaximumPutAttempts: 32,\n oldBlocks: 8,\n currentBlocks: 24,\n newBlocks: 1,\n blocksOnBlockDevice: {\n source: {\n file: {\n path: '/ac/blocks',\n sizeBytes: 100 * 1024 * 1024,\n },\n },\n spareBlocks: 3,\n },\n persistent: {\n stateDirectoryPath: '/ac',\n minimumEpochInterval: '300s',\n },\n },\n },\n },\n },\n grpcServers: [{\n listenAddresses: [':8981'],\n authenticationPolicy: common.allowAllauthorizerConfiguration,\n }],\n contentAddressableStorageAuthorizers: {\n get: common.allowAllauthorizerConfiguration,\n put: common.allowAllauthorizerConfiguration,\n findMissing: common.allowAllauthorizerConfiguration,\n },\n actionCacheAuthorizers: {\n get: common.allowAllauthorizerConfiguration,\n put: common.allowAllauthorizerConfiguration,\n },\n executeAuthorizer: common.allowAllauthorizerConfiguration,\n maximumMessageSizeBytes: common.maximumMessageSizeBytes,\n}"config https://github.com/buildbarn/bb-storage/blob/e5ee29d82ea7f458ad720a6ade4480e5838ab495/pkg/p

Deploy buildbarn with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has buildbarn on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartbuildbarn is pinned at v0.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply