forked from buchgr/bazel-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a more complete example kubernetes config
Thanks to @bu3 for providing this. Relates to buchgr#652.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# This configuration has been reported as working with k8s >= 1.24 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment | ||
labels: | ||
app: nginx | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: bazel-remote-cache | ||
image: buchgr/bazel-remote-cache:latest | ||
ports: | ||
- containerPort: 7442 | ||
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: | ||
# Set bazel-remote configuration value here... | ||
BAZEL_REMOTE_DIR: /data | ||
BAZEL_REMOTE_MAX_SIZE: 1000 |