buildkit-service

by andrcuns

Helm chartv1.9.0App v0.34.1Verified publisher

Helm chart for buildkit service deployment

About this chart

buildkit-service

buildkit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.

buildkit-service wraps kubernetes deployment examples in to helm chart

Introduction

This chart bootstraps buildkit service deployment on a Kubernetes cluster using the Helm package manager.

Add Helm repo

helm repo add andrcuns https://andrcuns.github.io/charts

Installing the Chart

Install this chart using:

helm install buildkit andrcuns/buildkit-service --values values.yaml

The command deploys buildkit-service on the Kubernetes cluster in the default configuration. The values section lists the parameters that can be configured during installation.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity
autoscaling.enabledboolfalseEnable horizontal pod auto-scaler
autoscaling.maxReplicasint5Maximum number of replicas
autoscaling.minReplicasint1Minimum number of replicas
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage
autoscaling.targetMemoryUtilizationPercentageint80Target memory utilization percentage
buildkitVolume.emptyDir.mediumstring""Storage medium (e.g., "Memory" for tmpfs)
buildkitVolume.emptyDir.sizeLimitstring""Size limit for the volume
buildkitVolume.pvc.accessModeslist["ReadWriteOnce"]Access modes
buildkitVolume.pvc.existingClaimstring""Use existing PVC name
buildkitVolume.pvc.sizestring"10Gi"Storage size
buildkitVolume.pvc.storageClassNamestring""Storage class name
buildkitVolume.typestring"emptyDir"Volume type: 'emptyDir' or 'pvc'
buildkitdTomlstring""Custom configuration buildkitd.toml
caCerts.certsobject{}base64 encoded CA certs to include in /etc/buildkit/certs
caCerts.enabledboolfalseAdd additional CA certificates
daemonArgslist[]Buildkitd command line parameters
debugLogboolfalseEnable debug logging
envlist[]Environment variables for the buildkit container
extraSelectorLabelsobject{}Additional selector labels to add to the deployment and pod template. Useful for integrating with tools like buildx that require specific labels (e.g. app).
extraVolumeMountslist[]Additional volume mounts to add to containers. Useful to manage image or emptyDir volumes for cloud provider credentials.
extraVolumeslist[]Additional volumes to add to the deployment and pod template. Useful to manage image or emptyDir volumes for cloud provider credentials.
image.pullPolicystring"IfNotPresent"Pull policy
image.repositorystring"moby/buildkit"Image name
image.tagstring""Image tag
initContainerslist[]Init containers to run before the main buildkit container Useful for network configuration, volume preparation, etc.
lifecycleobject{}Lifecycle hooks and termination
livenessProbeobject{"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":30,"timeoutSeconds":1}Liveness probe configuration
nodeSelectorobject{}Node selector
pdb.minAvailableint1Minimum available pods
podAnnotationsobject{}Pod annotations
preStopboolfalseEnable the preStop script for graceful shutdown, https://github.com/seatgeek/buildkit-prestop-script
readinessProbeobject{"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":30,"successThreshold":1,"timeoutSeconds":1}Readiness probe configuration
replicaCountint1
resourcesobject{}Resource definitions
rootlessboolfalseRun rootless mode, https://github.com/moby/buildkit/blob/master/docs/rootless.md
securityContextobject{}Container security context options
service.annotationsobject{}Service annotations
service.loadbalancerIpstring""Static ip address for load balancer
service.portint1234Service port
service.typestring"ClusterIP"Service type
serviceAccountNamestring"default"Service account name for the pod
terminationGracePeriodSecondsint30
tls.certstringnilBase64 encoded cert.pem
tls.certCAstringnilBase64 encoded ca.pem
tls.certKeystringnilBase64 encoded key.pem
tls.enabledboolfalseEnable mTLS, refer to https://github.com/moby/buildkit/tree/master/examples/kubernetes#deployment--service
tls.existingSecretstringnilName of an existing Secret in this namespace containing the certificate to be used for the server half of mTLS. Expected to contain tls.crt, tls.key ,ca.crt.
tolerationslist[]Tolerations

Deploy buildkit-service with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has buildkit-service 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 chartbuildkit-service is pinned at v1.9.0 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