blob: ba5c851ab0bc6a82f5057c0491eee23c9cd71dd9 [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-09-19T21_02_58Z-jcgregorio-2cad5d3-clean
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: "0.2"
memory: 2Gi
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