123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: bazel
- spec:
- replicas: 1
- selector:
- matchLabels:
- name: bazel
- template:
- metadata:
- labels:
- name: bazel
- spec:
- containers:
- - name: bazel-remote-cache
- image: buchgr/bazel-remote-cache:latest
- volumeMounts:
- - name: bazel
- mountPath: /data
- ports:
- - containerPort: 9092
- name: http
- protocol: TCP
- - containerPort: 8080
- name: http-default
- protocol: TCP
- livenessProbe:
- grpc:
- service: /grpc.health.v1.Health/Check
- port: 9092
- failureThreshold: 3
- initialDelaySeconds: 3
- periodSeconds: 1
- successThreshold: 1
- timeoutSeconds: 1
- readinessProbe:
- grpc:
- service: /grpc.health.v1.Health/Check
- port: 9092
- failureThreshold: 3
- periodSeconds: 3
- successThreshold: 1
- timeoutSeconds: 10
- env:
- - name: BAZEL_REMOTE_DIR
- value: "/data"
- - name: BAZEL_REMOTE_MAX_SIZE
- value: "20"
- volumes:
- - name: bazel
- emptyDir:
- sizeLimit: 20Gi
|