Skip to content

Commit

Permalink
feat(apps/prod/buildbarn): deploy init instance (#551)
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo committed May 22, 2023
1 parent 0d7f69e commit 367b190
Show file tree
Hide file tree
Showing 7 changed files with 123 additions and 172 deletions.
70 changes: 70 additions & 0 deletions apps/prod/buildbarn/configs/common.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
global: {
diagnosticsHttpServer: {
listenAddress: ':8080',
enablePrometheus: true,
enablePprof: true,
enableActiveSpans: true,
},
setUmask: { umask: 0 },
},
allowAllauthorizerConfiguration: {
allow: {},
},
blobstore: {
contentAddressableStorage: {
sharding: {
hashInitialization: 11946695773637837490,
shards: [
{
backend: { grpc: { address: 'buildbarn-storage-0.buildbarn-storage:8981' } },
weight: 1,
},
{
backend: { grpc: { address: 'buildbarn-storage-1.buildbarn-storage:8981' } },
weight: 1,
},
],
},
},
actionCache: {
completenessChecking: {
backend: {
readCaching: {
fast: {
sharding: {
hashInitialization: 11946695773637837490,
shards: [
{
backend: { grpc: { address: 'buildbarn-storage-0.buildbarn-storage:8981' } },
weight: 1,
},
{
backend: { grpc: { address: 'buildbarn-storage-1.buildbarn-storage:8981' } },
weight: 1,
},
],
},
},
slow: { http: { address: 'http://greenhouse.apps.svc/tidb' } },
replicator: {
queued: {
base: { 'local': {} },
existenceCache: {
cacheSize: 1024 * 1024,
cacheDuration: '60s',
cacheReplacementPolicy: 'LEAST_RECENTLY_USED',
},
},
},
},
},
maximumTotalTreeSizeBytes: 64 * 1024 * 1024,
},
},
},
// Remember to set your browserUrl to the ingress of the browser deployment
browserUrl: 'http://buildbarn-browser:80',
maximumMessageSizeBytes: 16 * 1024 * 1024,
httpListenAddress: ':80',
}
11 changes: 11 additions & 0 deletions apps/prod/buildbarn/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- release.yaml
configMapGenerator:
- name: buildbarn-config
namespace: flux-system
files:
- configs/common.jsonnet
configurations:
- kustomize-config.yaml
8 changes: 8 additions & 0 deletions apps/prod/buildbarn/kustomize-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Kustomize config for enabling HelmRelease values from
# ConfigMaps and Secrets generated by Kustomize
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease
32 changes: 32 additions & 0 deletions apps/prod/buildbarn/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: buildbarn
namespace: flux-system
spec:
releaseName: buildbarn
targetNamespace: apps
chart:
spec:
chart: buildbarn
version: 0.0.2
sourceRef:
kind: HelmRepository
name: ee-ops
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
test:
enable: true
ignoreFailures: false
valuesFrom:
- kind: ConfigMap
name: buildbarn-config
valuesKey: common.jsonnet
targetPath: commonConf


1 change: 1 addition & 0 deletions apps/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ resources:
- goproxy
- sec-service.yaml
- tekton
- buildbarn
171 changes: 0 additions & 171 deletions charts/buildbarn/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion charts/prow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type: application
# time you make changes to the chart and its templates,
# including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "0.8.1"
version: "0.8.2"

# This is the version number of the application being deployed.
# This version number should be incremented each time you make changes to the
Expand Down

0 comments on commit 367b190

Please sign in to comment.