blob: abfc2ef2e88986faa26f4094d35245de6c7a1130 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: skiaperf-android
name: skiaperf-android
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: skiaperf-android
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: skiaperf-android
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: skiaperf-android
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
image: gcr.io/skia-public/skiaperf:2019-02-12T02_06_39Z-jcgregorio-57390ca-clean
args:
- --algo=stepfit
- --big_table_config=android
- --commit_range_url=https://android-master-ingest.skia.org/rr/{begin}/{end}
- --dataframe_size=1024
- --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
- --internal_only
- --kubernetes
- --logtostderr
- --namespace=perf-androidmaster
- --num_continuous=300
- --num_shift=50
- --port=:8000
- --project_name=skia-public
- --prom_port=:20000
- --radius=11
- --resources_dir=/usr/local/share/skiaperf/
- --step_up_only
- --subdomain=android-master-perf
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: "100Gi"
cpu: "2"
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