blob: 53f1a63c46274dac97f70197190e675f9ffcc616 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: gold-chrome-gpu-skiacorrectness
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: gold-chrome-gpu-skiacorrectness
type: NodePort
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: gold-chrome-gpu-skiacorrectness
spec:
serviceName: "gold-chrome-gpu-skiacorrectness"
replicas: 1
selector:
matchLabels:
app: gold-chrome-gpu-skiacorrectness
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: gold-chrome-gpu-skiacorrectness
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: gold-chrome-gpu-skiacorrectness
image: gcr.io/skia-public/gold-skiacorrectness:2019-01-17T23_06_17Z-stephana-5a9d108-dirty
args:
- "--logtostderr=true"
- "--app_title=Chrome GPU Gold"
- "--baseline_gs_path=skia-gold-chrome-gpu/baselines"
- "--cache_size=0"
- "--default_corpus=chrome-gpu"
- "--ds_namespace=gold-chrome-gpu"
- "--event_topic=gold-chrome-gpu-eventbus"
- "--force_login=false"
- "--gerrit_url=https://chromium-review.googlesource.com"
- "--git_repo_dir=/data/ci-repo"
- "--git_repo_url=https://chromium.googlesource.com/chromium/src"
- "--gs_buckets=skia-gold-chrome-gpu"
- "--hashes_gs_path=skia-gold-chrome-gpu/hash_files/gold-chrome-gpu-hashes.txt"
- "--image_dir=/data/imagediffs"
- "--n_commits=100"
- "--no_cloud_log=true"
- "--port=:8000"
- "--project_id=skia-public"
- "--prom_port=:20000"
- "--public_whitelist=all"
- "--redirect_url=https://skia.org/oauth2callback/"
- "--resources_dir=/usr/local/share/skiacorrectness/frontend"
- "--service_account_file=/etc/gold-config/service-account.json"
- "--site_url=https://chrome-gpu-gold.skia.org"
- "--show_bot_progress=false"
- "--sparse"
- "--storage_dir=/data/data-store"
- "--trace_service=gold-chrome-gpu-traceservice:9090"
ports:
- containerPort: 8000
name: http
- containerPort: 20000
name: prom
volumeMounts:
- name: gold-chrome-gpu-skiacorrectness-storage-volume
mountPath: /data
- name: gold-service-account-secrets
mountPath: /etc/gold-config/
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
resources:
requests:
memory: "4Gi"
cpu: "2"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 15
periodSeconds: 10
volumes:
- name: gold-service-account-secrets
secret:
secretName: gold-service-account-secrets
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets
volumeClaimTemplates:
- metadata:
name: gold-chrome-gpu-skiacorrectness-storage-volume
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 100Gi