blob: b91e38c0f491e129b9c87410ef753a339284748c [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: gold-chrome-skiacorrectness
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
spec:
ports:
- name: http
port: 8000
- name: metrics
port: 20000
selector:
app: gold-chrome-skiacorrectness
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gold-chrome-skiacorrectness
spec:
replicas: 1
selector:
matchLabels:
app: gold-chrome-skiacorrectness
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: gold-chrome-skiacorrectness
appgroup: gold-chrome
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-skiacorrectness
image: gcr.io/skia-public/gold-skiacorrectness:2019-10-01T17_52_20Z-kjlubick-8f979f3-clean
args:
- "--app_title=Chrome Gold"
- "--authoritative=true"
- "--auth_users=google.com"
- "--bt_instance=production"
- "--bt_project_id=skia-public"
- "--changelist_tracking=true"
- "--default_corpus=chrome"
- "--diff_server_grpc=gold-chrome-diffserver:8000"
- "--diff_server_http=gold-chrome-diffserver:8001"
- "--ds_namespace=gold-chrome"
- "--ds_project_id=skia-public"
- "--event_topic=gold-chrome-eventbus"
- "--force_login=false"
- "--fs_namespace=chrome"
- "--fs_project_id=skia-firestore"
- "--gerrit_url=https://chromium-review.googlesource.com"
- "--git_bt_table=git-repos2"
- "--git_repo_url=https://chromium.googlesource.com/chromium/src"
- "--hashes_gs_path=skia-gold-chrome/hash_files/gold-chrome-hashes.txt"
- "--lit_html_dir=/usr/local/share/skiacorrectness"
- "--logtostderr=true"
- "--n_commits=512"
- "--no_cloud_log=true"
- "--primary_crs=gerrit"
- "--port=:8000"
- "--prom_port=:20000"
- "--public_whitelist=all"
- "--pubsub_project_id=skia-public"
- "--redirect_url=https://chrome-gold.skia.org/oauth2callback/"
- "--resources_dir=/usr/local/share/skiacorrectness/frontend"
- "--show_bot_progress=false"
- "--site_url=https://chrome-gold.skia.org"
- "--tile_freshness=1m"
- "--trace_bt_table=gold-chrome"
ports:
- containerPort: 8000
name: http
- containerPort: 20000
name: prom
volumeMounts:
- name: gold-service-account-secrets
mountPath: /var/secrets/google/
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/service-account.json
resources:
requests:
memory: "4Gi"
cpu: "4"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 6
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