blob: 12078b6b78057795ce918613c82b5f47a2abbe5b [file] [log] [blame]
# Copyright 2018 Google Inc. All Rights Reserved.
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: file-server
annotations:
imagetag: $IMAGETAG
buildtag: $TAG
name: file-server
spec:
replicas: 2
selector:
matchLabels:
app: file-server
template:
metadata:
labels:
app: file-server
spec:
containers:
- command:
- /opt/goma/bin/file_server
- --trace-project-id=$PROJECT_ID
- --file-cache-addr=file-cache-server:5050
name: file-server
image: gcr.io/$CONTAINER_PROJECT_ID/file-server:$IMAGETAG
ports:
- containerPort: 5050
protocol: TCP
- containerPort: 8081
protocol: TCP
resources:
limits:
cpu: 1500m
memory: 3000Mi
requests:
cpu: 600m
memory: 768Mi
# 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