blob: 43d94bbdcdd2dfda83051f00333606f1a86df121 [file] [log] [blame]
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: perf-ingest
name: perf-ingest
spec:
progressDeadlineSeconds: 600
replicas: 2
selector:
matchLabels:
app: perf-ingest
strategy:
type: RollingUpdate
template:
metadata:
annotations:
prometheus.io.port: "20000"
prometheus.io.scrape: "true"
labels:
app: perf-ingest
appgroup: perf
spec:
automountServiceAccountToken: false
containers:
- args:
- --logtostderr
- --prom_port=:20000
- --port=:8000
- --config_name=nano
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
image: gcr.io/skia-public/perf-ingest:2019-02-01T18_46_42Z-jcgregorio-7e837f0-dirty
imagePullPolicy: IfNotPresent
name: perf-ingest
ports:
- containerPort: 20000
protocol: TCP
- containerPort: 8000
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /ready
port: 8000
scheme: HTTP
initialDelaySeconds: 1
periodSeconds: 3
successThreshold: 1
timeoutSeconds: 1
resources:
requests:
cpu: "5"
memory: 50Gi
volumeMounts:
- mountPath: /var/secrets/google
name: skia-perf-ingest-sa
restartPolicy: Always
securityContext:
fsGroup: 2000
runAsUser: 2000
terminationGracePeriodSeconds: 30
volumes:
- name: skia-perf-ingest-sa
secret:
secretName: perf-ingest