-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(apps/prod/buildbarn): deploy init instance (#551)
Signed-off-by: wuhuizuo <[email protected]>
- Loading branch information
Showing
7 changed files
with
123 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ resources: | |
- goproxy | ||
- sec-service.yaml | ||
- tekton | ||
- buildbarn |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters