bazel-dply.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: bazel
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. name: bazel
  10. template:
  11. metadata:
  12. labels:
  13. name: bazel
  14. spec:
  15. containers:
  16. - name: bazel-remote-cache
  17. image: buchgr/bazel-remote-cache:latest
  18. volumeMounts:
  19. - name: bazel
  20. mountPath: /data
  21. ports:
  22. - containerPort: 9092
  23. name: http
  24. protocol: TCP
  25. - containerPort: 8080
  26. name: http-default
  27. protocol: TCP
  28. livenessProbe:
  29. grpc:
  30. service: /grpc.health.v1.Health/Check
  31. port: 9092
  32. failureThreshold: 3
  33. initialDelaySeconds: 3
  34. periodSeconds: 1
  35. successThreshold: 1
  36. timeoutSeconds: 1
  37. readinessProbe:
  38. grpc:
  39. service: /grpc.health.v1.Health/Check
  40. port: 9092
  41. failureThreshold: 3
  42. periodSeconds: 3
  43. successThreshold: 1
  44. timeoutSeconds: 10
  45. env:
  46. - name: BAZEL_REMOTE_DIR
  47. value: "/data"
  48. - name: BAZEL_REMOTE_MAX_SIZE
  49. value: "20"
  50. volumes:
  51. - name: bazel
  52. emptyDir:
  53. sizeLimit: 20Gi