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