apiVersion: v1
data:
  storage.jsonnet: |
    local common = import 'common.libsonnet';

    {
      blobstore: {
        contentAddressableStorage: {
          circular: {
            directory: '/cas',
            offsetFileSizeBytes: 16 * 1024 * 1024,
            offsetCacheSize: 10000,
            dataFileSizeBytes: 10 * 1024 * 1024 * 1024,
            dataAllocationChunkSizeBytes: 16 * 1024 * 1024,
          },
        },
        actionCache: {
          circular: {
            directory: '/ac',
            offsetFileSizeBytes: 1024 * 1024,
            offsetCacheSize: 1000,
            dataFileSizeBytes: 100 * 1024 * 1024,
            dataAllocationChunkSizeBytes: 1024 * 1024,
            instances: ['bb-event-service', 'remote-execution'],
          },
        },
      },
      httpListenAddress: common.httpListenAddress,
      grpcServers: [{
        listenAddresses: [':8981'],
        authenticationPolicy: { allow: {} },
      }],
      allowAcUpdatesForInstanceNamePrefixes: [''],
      maximumMessageSizeBytes: common.maximumMessageSizeBytes,
    }

kind: ConfigMap
metadata:
  name: storage
  namespace: buildbarn
