blob: 800e0036712dccfa5e6880cf14d65c3f94ab4c89 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: gold-skia-infra-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-infra-skiacorrectness
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gold-skia-infra-skiacorrectness
spec:
replicas: 1
selector:
matchLabels:
app: gold-skia-infra-skiacorrectness
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: gold-skia-infra-skiacorrectness
appgroup: gold-skia-infra
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-infra-skiacorrectness
image: gcr.io/skia-public/gold-skiacorrectness:2019-12-03T12_55_54Z-kjlubick-6386d21-clean
args:
- "--app_title=Skia Infra Gold"
- "--authoritative=true"
- "--auth_users=google.com"
- "--bt_instance=production"
- "--bt_project_id=skia-public"
- "--changelist_tracking=true"
- "--cis_url_template=https://cr-buildbucket.appspot.com/build/%s"
- "--crs_url_template=https://skia-review.googlesource.com/%s"
- "--default_corpus=skia-infra"
- "--diff_server_grpc=gold-skia-infra-diffserver:8000"
- "--diff_server_http=gold-skia-infra-diffserver:8001"
- "--ds_namespace=gold-skia-infra"
- "--ds_project_id=skia-public"
- "--event_topic=gold-skia-infra-eventbus"
- "--force_login=false"
- "--fs_namespace=skia-infra"
- "--fs_project_id=skia-firestore"
- "--gerrit_url=https://skia-review.googlesource.com"
- "--git_bt_table=git-repos2"
- "--git_repo_url=https://skia.googlesource.com/buildbot.git"
- "--hashes_gs_path=skia-gold-skia-infra/hash_files/gold-skia-infra-hashes.txt"
- "--lit_html_dir=/usr/local/share/skiacorrectness"
- "--logtostderr=true"
- "--n_commits=200"
- "--no_cloud_log=true"
- "--primary_crs=gerrit"
- "--port=:8000"
- "--prom_port=:20000"
- "--public_whitelist=all"
- "--pubsub_project_id=skia-public"
- "--redirect_url=https://skia-infra-gold.skia.org/oauth2callback/"
- "--resources_dir=/usr/local/share/skiacorrectness/frontend"
- "--show_bot_progress=false"
- "--site_url=https://skia-infra-gold.skia.org"
- "--tile_freshness=1m"
- "--trace_bt_table=gold-skia-infra"
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