blob: 34de84137358b1de7930ed89923cb33c935c1397 [file] [log] [blame]
# Copyright 2018 Google Inc. All Rights Reserved.
# TODO(ukai): use StatefulSet?
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: cmd-cache-server
annotations:
imagetag: $IMAGETAG
buildtag: $TAG
name: cmd-cache-server
spec:
# TODO(ukai): more replicas (fix cluster size)
replicas: 2
selector:
matchLabels:
app: cmd-cache-server
template:
metadata:
labels:
app: cmd-cache-server
spec:
containers:
- command:
- /opt/goma/bin/cache_server
- --trace-project-id=$PROJECT_ID
- --bucket=$CACHE_BUCKET_PREFIX-cmd-cache
name: cmd-cache-server
image: gcr.io/$CONTAINER_PROJECT_ID/cache-server:$IMAGETAG
ports:
- containerPort: 5050
protocol: TCP
- containerPort: 8081
protocol: TCP
resources:
limits:
cpu: 1500m
memory: 4000Mi
requests:
cpu: 100m
memory: 2000Mi
# following could be configured by PodPreset?
livenessProbe:
httpGet:
path: /healthz
port: 8081
scheme: HTTP
initialDelaySeconds: 3
periodSeconds: 5
readinessProbe:
httpGet:
path: /healthz
port: 8081
scheme: HTTP
initialDelaySeconds: 3
periodSeconds: 5