blob: 05361b3f6db0c772a369d1b20df22577181f2a12 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: gold-skia-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-skia-skiacorrectness
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gold-skia-skiacorrectness
spec:
replicas: 1
selector:
matchLabels:
app: gold-skia-skiacorrectness
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: gold-skia-skiacorrectness
appgroup: gold-skia
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: gold-skia-skiacorrectness
image: gcr.io/skia-public/gold-skiacorrectness:2019-10-07T15_18_58Z-kjlubick-8da1ec9-clean
args:
- "--app_title=Skia Gold"
- "--authoritative=true"
- "--auth_users=google.com mtklein@chromium.org skia-external-gm-uploader@skia-swarming-bots.iam.gserviceaccount.com"
- "--bt_instance=production"
- "--bt_project_id=skia-public"
- "--changelist_tracking=true"
- "--default_corpus=gm"
- "--diff_server_grpc=gold-skia-diffserver:8000"
- "--diff_server_http=gold-skia-diffserver:8001"
- "--ds_namespace=gold-skia-prod"
- "--ds_project_id=google.com:skia-buildbots"
- "--event_topic=gold-skia-eventbus"
- "--force_login=true"
- "--fs_namespace=skia"
- "--fs_project_id=skia-firestore"
- "--gerrit_url=https://skia-review.googlesource.com"
- "--git_bt_table=git-repos2"
- "--git_repo_url=https://skia.googlesource.com/skia.git"
- "--hashes_gs_path=skia-infra-gm/hash_files/gold-prod-hashes.txt"
- "--lit_html_dir=/usr/local/share/skiacorrectness"
- "--logtostderr=true"
- "--n_commits=256"
- "--no_cloud_log=true"
- "--primary_crs=gerrit"
- "--port=:8000"
- "--prom_port=:20000"
- "--public_whitelist=all"
- "--pubsub_project_id=skia-public"
- "--redirect_url=https://gold.skia.org/oauth2callback/"
- "--resources_dir=/usr/local/share/skiacorrectness/frontend"
- "--show_bot_progress=false"
- "--site_url=https://gold.skia.org"
- "--tile_freshness=5m"
- "--trace_bt_table=gold-skia"
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: "80Gi"
cpu: "20"
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