Skip to content

Commit

Permalink
feat(apps/prod/brc): init brc release (#574)
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Jun 4, 2023
1 parent 76f13e6 commit c412737
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/prod/brc/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- pvc.yaml
- release.yaml
13 changes: 13 additions & 0 deletions apps/prod/brc/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: brc
namespace: apps
spec:
storageClassName: ceph-block
resources:
requests:
storage: 1.1Ti
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
47 changes: 47 additions & 0 deletions apps/prod/brc/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: brc
namespace: flux-system
spec:
releaseName: brc
targetNamespace: apps
chart:
spec:
chart: bazel-remote
version: 0.0.3
sourceRef:
kind: HelmRepository
name: ee-ops
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
test:
enable: true
ignoreFailures: false
values:
image:
repository: buchgr/bazel-remote-cache
tag: v2.4.1
podSecurityContext:
fsGroup: 1000
conf: |-
# https://github.com/buchgr/bazel-remote#example-configuration-file
dir: /data
max_size: 1000
experimental_remote_asset_api: true
access_log_level: all
port: 8080
grpc_port: 9092
replicaCount: 1
volumeMounts:
- mountPath: /data
name: brc-cache
volumes:
- name: brc-cache
persistentVolumeClaim:
claimName: brc
2 changes: 2 additions & 0 deletions apps/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ resources:
- goproxy
- sec-service.yaml
- tekton
- brc
- buildbarn

0 comments on commit c412737

Please sign in to comment.