blob: a3783626b22fcce25bfd29de7702e81d12adeb5e [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: skiaperf-android-x
name: skiaperf-android-x
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
skia.org.domain: androidx-perf.skia.org
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: skiaperf-android-x
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: skiaperf-android-x
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: skiaperf-android-x
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: skiaperf-android-x
image: gcr.io/skia-public/skiaperf:2019-10-07T16_37_10Z-jcgregorio-221c9d1-clean
args:
- --algo=stepfit
- --big_table_config=android-x
- --commit_range_url=https://android-master-ingest.skia.org/rr/{begin}/{end}
- --default_sparse=true
- --email_client_secret_file=/etc/perf-email-secrets/client_secret.json
- --email_token_cache_file=/etc/perf-email-secrets/client_token.json
- --git_repo_dir=/tmp/skiaperf/repo
- --interesting=25
- --logtostderr
- --namespace=perf-android-x
- --num_continuous=50
- --num_shift=50
- --port=:8000
- --project_name=skia-public
- --prom_port=:20000
- --radius=7
- --resources_dir=/usr/local/share/skiaperf/
- --step_up_only
- --subdomain=androidx-perf
- --num_continuous_parallel=1
- --num_tiles_refresher=2
ports:
- containerPort: 20000
- containerPort: 8000
volumeMounts:
- name: skia-public-auth
mountPath: /var/secrets/skia-public-auth
- name: skia-perf-sa
mountPath: /var/secrets/google
- name: csrf-salt
mountPath: /var/skia/
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
- name: perf-alertserver-skia-org-secrets
mountPath: /etc/perf-email-secrets
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
requests:
memory: "10Gi"
cpu: "2"
limits:
memory: "200Gi"
cpu: "6"
livenessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 30
failureThreshold: 40
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 1
periodSeconds: 3
volumes:
- name: skia-public-auth
secret:
secretName: skia-public-auth
- name: skia-perf-sa
secret:
secretName: skia-perf
- name: csrf-salt
secret:
secretName: csrf-salt
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets
- name: perf-alertserver-skia-org-secrets
secret:
secretName: perf-alertserver-skia-org-secrets