-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to use a configMapGenerator
- Loading branch information
1 parent
7a75b74
commit b4cc640
Showing
24 changed files
with
353 additions
and
420 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
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
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
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,12 @@ | ||
local common = import 'common.libsonnet'; | ||
|
||
{ | ||
blobstore: common.blobstore, | ||
maximumMessageSizeBytes: common.maximumMessageSizeBytes, | ||
httpServers: [{ | ||
listenAddresses: [':7984'], | ||
authenticationPolicy: { allow: {} }, | ||
}], | ||
global: common.global, | ||
authorizer: { allow: {} }, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
blobstore: { | ||
contentAddressableStorage: { | ||
sharding: { | ||
hashInitialization: 11946695773637837490, | ||
shards: [ | ||
{ | ||
backend: { grpc: { address: 'storage-0.storage.buildbarn:8981' } }, | ||
weight: 1, | ||
}, | ||
{ | ||
backend: { grpc: { address: 'storage-1.storage.buildbarn:8981' } }, | ||
weight: 1, | ||
}, | ||
], | ||
}, | ||
}, | ||
actionCache: { | ||
completenessChecking: { | ||
backend: { | ||
sharding: { | ||
hashInitialization: 14897363947481274433, | ||
shards: [ | ||
{ | ||
backend: { grpc: { address: 'storage-0.storage.buildbarn:8981' } }, | ||
weight: 1, | ||
}, | ||
{ | ||
backend: { grpc: { address: 'storage-1.storage.buildbarn:8981' } }, | ||
weight: 1, | ||
}, | ||
], | ||
}, | ||
}, | ||
maximumTotalTreeSizeBytes: 64 * 1024 * 1024, | ||
}, | ||
}, | ||
}, | ||
browserUrl: 'http://bb-browser.example.com:80', | ||
httpServers: [{ | ||
listenAddresses: [':80'], | ||
authenticationPolicy: { allow: {} }, | ||
}], | ||
maximumMessageSizeBytes: 2 * 1024 * 1024, | ||
global: { | ||
diagnosticsHttpServer: { | ||
httpServers: [{ | ||
listenAddresses: [':9980'], | ||
authenticationPolicy: { allow: {} }, | ||
}], | ||
enablePrometheus: true, | ||
enablePprof: true, | ||
enableActiveSpans: true, | ||
}, | ||
}, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
local common = import 'common.libsonnet'; | ||
|
||
{ | ||
grpcServers: [{ | ||
listenAddresses: [':8980'], | ||
authenticationPolicy: { allow: {} }, | ||
}], | ||
schedulers: { | ||
'': { | ||
endpoint: { | ||
address: 'scheduler:8982', | ||
addMetadataJmespathExpression: ||| | ||
{ | ||
"build.bazel.remote.execution.v2.requestmetadata-bin": incomingGRPCMetadata."build.bazel.remote.execution.v2.requestmetadata-bin" | ||
} | ||
|||, | ||
}, | ||
}, | ||
}, | ||
maximumMessageSizeBytes: common.maximumMessageSizeBytes, | ||
global: common.global, | ||
contentAddressableStorage: { | ||
backend: common.blobstore.contentAddressableStorage, | ||
getAuthorizer: { allow: {} }, | ||
putAuthorizer: { allow: {} }, | ||
findMissingAuthorizer: { allow: {} }, | ||
}, | ||
actionCache: { | ||
backend: common.blobstore.actionCache, | ||
getAuthorizer: { allow: {} }, | ||
putAuthorizer: { allow: {} }, | ||
}, | ||
executeAuthorizer: { allow: {} }, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- browser.yaml | ||
- common.yaml | ||
- frontend.yaml | ||
- runner-ubuntu22-04.yaml | ||
- scheduler.yaml | ||
- storage.yaml | ||
- worker-ubuntu22-04.yaml | ||
configMapGenerator: | ||
- name: buildbarn-config | ||
namespace: buildbarn | ||
files: | ||
- browser.jsonnet | ||
- common.libsonnet | ||
- frontend.jsonnet | ||
- runner-ubuntu22-04.jsonnet | ||
- scheduler.jsonnet | ||
- storage.jsonnet | ||
- worker-ubuntu22-04.jsonnet |
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,10 @@ | ||
local common = import 'common.libsonnet'; | ||
|
||
{ | ||
buildDirectoryPath: '/worker/build', | ||
// TODO: global: common.global, | ||
grpcServers: [{ | ||
listenPaths: ['/worker/runner'], | ||
authenticationPolicy: { allow: {} }, | ||
}], | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
local common = import 'common.libsonnet'; | ||
|
||
{ | ||
adminHttpServers: [{ | ||
listenAddresses: [':7982'], | ||
authenticationPolicy: { allow: {} }, | ||
}], | ||
clientGrpcServers: [{ | ||
listenAddresses: [':8982'], | ||
authenticationPolicy: { allow: {} }, | ||
}], | ||
workerGrpcServers: [{ | ||
listenAddresses: [':8983'], | ||
authenticationPolicy: { allow: {} }, | ||
}], | ||
browserUrl: common.browserUrl, | ||
contentAddressableStorage: common.blobstore.contentAddressableStorage, | ||
maximumMessageSizeBytes: common.maximumMessageSizeBytes, | ||
global: common.global, | ||
executeAuthorizer: { allow: {} }, | ||
modifyDrainsAuthorizer: { allow: {} }, | ||
killOperationsAuthorizer: { allow: {} }, | ||
actionRouter: { | ||
simple: { | ||
platformKeyExtractor: { actionAndCommand: {} }, | ||
invocationKeyExtractors: [ | ||
{ correlatedInvocationsId: {} }, | ||
{ toolInvocationId: {} }, | ||
], | ||
initialSizeClassAnalyzer: { | ||
defaultExecutionTimeout: '1800s', | ||
maximumExecutionTimeout: '7200s', | ||
}, | ||
}, | ||
}, | ||
platformQueueWithNoWorkersTimeout: '900s', | ||
} |
Oops, something went wrong.