BuildBuddy Executor handles execution for BuildBuddy's Remote Build Execution platform.
helm repo add buildbuddy https://helm.buildbuddy.io
helm install buildbuddy buildbuddy/buildbuddy-executor
This chart creates a BuildBuddy Executor deployment on a Kubernetes cluster using the Helm package manager.
- Kubernetes 1.15+ with Beta APIs enabled
- Helm v2/v3
- Tiller (the Helm v2 server-side component) installed on the cluster
To install the chart with the release name my-release
:
$ helm install my-release buildbuddy/buildbuddy-executor
Helm v2 command
$ helm install --name my-release buildbuddy/buildbuddy-executor
The command deploys BuildBuddy Executor on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
To uninstall/delete the my-release
deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
If you change configuration, you can update your deployment:
$ helm upgrade my-release -f my-values.yaml buildbuddy/buildbuddy-executor
You can write your Kubernetes deployment configuration to a file release name my-release
:
$ helm template my-release buildbuddy/buildbuddy-executor > buildbuddy-deploy.yaml
You can then check this configuration in to your source repository, or manually apply it to your cluster with:
$ kubectl apply -f buildbuddy-deploy.yaml
The following table lists the configurable parameters of the BuildBuddy Open Source chart and their default values.
Parameter | Description | Default |
---|---|---|
config |
The config.yaml configuration to be used by the BuildBuddy Executor. The values you provide will by using Helm's merging behavior override individual default values only. See the example configurations and the BuildBuddy documentation for details. |
See config in values.yaml |
image.repository |
Container image repository | gcr.io/flame-public/buildbuddy-executor-enterprise |
image.tag |
Container image tag | enterprise-v2.117.0 |
image.imagePullPolicy |
Container image pull policy | IfNotPresent |
disk.data.enabled |
Whether to enable a persistent volume disk mounted at /data | true |
disk.data.size |
The size of the persistent volume disk | 10Gi |
service.internalHTTPPort |
The port on our docker image that serves http traffic | 8080 |
service.internalGRPCPort |
The port on our docker image that serves grpc traffic | 1985 |
service.internalMetricsPort |
The port on our docker image that serves prometheus traffic | 9090 |
extraPodAnnotations |
Extra pod annotations to be used in the deployments | [] |
extraPodLabels |
Extra pod labels to be used in the deployments | [] |
extraEnvVars |
Extra environments variables to be used in the deployments | [] |
extraInitContainers |
Additional init containers | [] |
extraContainers |
Additional containers | [] |
customExecutorCommand |
Custom command for running the executor | null |
Specify each parameter using the --set key=value[,key=value]
argument to helm install
. For example,
$ helm install my-release \
--set image.tag=enterprise-v2.117.0 \
--set mysql.mysqlUser=sampleUser \
--set mysql.mysqlPassword=samplePassword \
buildbuddy/buildbuddy-executor
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
$ helm install my-release -f values.yaml buildbuddy/buildbuddy-executor
Below are some examples of .yaml
files with values that could be passed to the helm
command with the -f
or --values
flag to get started.
config:
executor:
app_target: "grpcs://remote.buildbuddy.io:443"
local_cache_size_bytes: 50000000000 # 50GB
api_key: "YOUR_EXECUTOR_ENABLED_API_KEY"
autoscaler:
enabled: true
minReplicas: 3
maxReplicas: 100
averageCPU: 90
averageMemory: 50
averageQueueLength: 5
For more example config:
blocks, see our configuration docs.
For local testing use minikube
Create local cluster using with specified Kubernetes version (e.g. 1.15.6
)
$ minikube start --kubernetes-version v1.15.6
Initialize helm
$ helm init
Above command is not required for Helm v3
Get dependencies
$ helm dependency update
Perform local installation
$ helm install . \
--set image.tag=5.12.4 \
--set mysql.mysqlUser=sampleUser \
--set mysql.mysqlPassword=samplePassword
Helm v3 command
$ helm install . \
--generate-name \
--set image.tag=5.12.4 \
--set mysql.mysqlUser=sampleUser \
--set mysql.mysqlPassword=samplePassword