blob: 3ac5922a4eef4d5647294a96283e6a5da7422281 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: gold-lottie-skiacorrectness
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: gold-lottie-skiacorrectness
type: NodePort
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: gold-lottie-skiacorrectness
spec:
serviceName: "gold-lottie-skiacorrectness"
replicas: 1
selector:
matchLabels:
app: gold-lottie-skiacorrectness # Label selector that determines which Pods belong to the StatefulSet
# Must match spec: template: metadata: labels
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: gold-lottie-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-lottie-skiacorrectness
image: gcr.io/skia-public/gold-skiacorrectness:2018-12-03T18_54_00Z-stephana-8095b0d-clean
args:
- "--logtostderr=true"
- "--app_title=Lottie Gold"
- "--baseline_gs_path=skia-gold-lottie/baselines"
- "--cache_size=0"
- "--default_corpus=lottie"
- "--ds_namespace=gold-lottie"
- "--event_topic=gold-lottie-eventbus"
- "--force_login=false"
- "--gerrit_url=https://skia-review.googlesource.com"
- "--git_repo_dir=/data/lottie-ci-repo"
- "--git_repo_url=https://skia.googlesource.com/lottie-ci"
- "--gs_buckets=skia-gold-lottie"
- "--hashes_gs_path=skia-gold-lottie/hash_files/gold-lottie-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://lottie-gold.skia.org"
- "--show_bot_progress=false"
- "--storage_dir=/data/data-store"
- "--trace_service=gold-lottie-traceservice:9090"
ports:
- containerPort: 8000
name: http
- containerPort: 20000
name: prom
volumeMounts:
- name: gold-lottie-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: "8Gi"
cpu: "2"
readinessProbe:
httpGet:
path: /ready
port: 8000
initialDelaySeconds: 45
periodSeconds: 15
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-lottie-skiacorrectness-storage-volume
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 100Gi