blob: 0f996c53353c76546432d8263d9d2d4ee7eeb6cf [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: androidingest
name: androidingest
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
spec:
ports:
- name: metrics
port: 20000
- name: internal-http
port: 8000
selector:
app: androidingest
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: androidingest
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: androidingest
appgroup: perf
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: androidingest
image: gcr.io/skia-public/androidingest:2019-01-09T15_14_04Z-jcgregorio-5486b89-dirty
args:
- --logtostderr
- --port=:8000
- --prom_port=:20000
- --repo_url=https://skia.googlesource.com/perf-buildid/android-master
- --storage_url=gs://skia-perf/android-master-ingest
- --work_root=/tmp
- --subdomain=android-master-ingest
- --resources_dir=/usr/local/share/androidingest/
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: skia-android-ingest-sa
mountPath: /var/secrets/google
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
requests:
memory: "30Mi"
cpu: "20m"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 3
periodSeconds: 3
volumes:
- name: skia-android-ingest-sa
secret:
secretName: skia-android-ingest
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets