blob: 48ee062ef6f43f2f624ad8c8a5d324e71a0c2842 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-angle-skia-autoroll
spec:
serviceName: "autoroll-be-angle-skia-autoroll"
replicas: 1
selector:
matchLabels:
app: autoroll-be-angle-skia-autoroll
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-angle-skia-autoroll # Pod template's label selector
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: autoroll-be-angle-skia-autoroll
image: gcr.io/skia-public/autoroll-be:2019-10-01T16_39_30Z-borenet-ad41711-clean
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJBTkdMRSIsImNvbnRhY3RzIjpbImptYWRpbGxAZ29vZ2xlLmNvbSJdLCJpc0ludGVybmFsIjpmYWxzZSwicGFyZW50TmFtZSI6IlNraWEiLCJwYXJlbnRXYXRlcmZhbGwiOiJodHRwczovL3N0YXR1cy5za2lhLm9yZyIsInJvbGxlck5hbWUiOiJhbmdsZS1za2lhLWF1dG9yb2xsIiwic2VydmljZUFjY291bnQiOiJza2lhLWF1dG9yb2xsQHNraWEtcHVibGljLmlhbS5nc2VydmljZWFjY291bnQuY29tIiwic2hlcmlmZiI6WyJodHRwczovL3NraWEtdHJlZS1zdGF0dXMuYXBwc3BvdC5jb20vY3VycmVudC1zaGVyaWZmIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL3NraWEtcmV2aWV3Lmdvb2dsZXNvdXJjZS5jb20iLCJwcm9qZWN0Ijoic2tpYSIsImNvbmZpZyI6ImNocm9taXVtIn0sImZyZWVUeXBlUmVwb01hbmFnZXIiOm51bGwsIm5vQ2hlY2tvdXRERVBTUmVwb01hbmFnZXIiOnsiY2hpbGRCcmFuY2giOiJtYXN0ZXIiLCJjaGlsZFBhdGgiOiJ0aGlyZF9wYXJ0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DbGFuZy1OVUM4aTVCRUstR1BVLUludGVsSXJpczY1NS14ODZfNjQtRGVidWctQWxsLUFOR0xFIiwic2tpYS5wcmltYXJ5OlRlc3QtV2luMTAtQ2xhbmctTlVDRDM0MDEwV1lLSC1HUFUtSW50ZWxIRDQ0MDAteDg2XzY0LURlYnVnLUFsbC1BTkdMRSJdLCJtYXhSb2xsRnJlcXVlbmN5IjoiNmgiLCJ0aW1lV2luZG93IjoiTS1GIDA0OjAwLTA4OjAwIiwic3VwcG9ydHNNYW51YWxSb2xscyI6dHJ1ZX0="
- "--email_creds=/var/secrets/autoroll-email-creds"
- "--firestore_instance=production"
- "--port=:8000"
- "--prom_port=:20000"
- "--recipes_cfg=/usr/local/share/autoroll/recipes.cfg"
- "--workdir=/tmp"
- "--chat_webhooks_file=/etc/notifier-chat-config/chat_config.txt"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: autoroll-be-skia-autoroll-sa
mountPath: /var/secrets/google
- name: autoroll-email-creds
mountPath: /var/secrets/autoroll-email-creds
- name: notifier-chat-config
mountPath: /etc/notifier-chat-config/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
- name: TMPDIR
value: /tmp
resources:
limits:
memory: "2Gi"
cpu: 1
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 30
failureThreshold: 10
volumes:
- name: autoroll-be-skia-autoroll-sa
secret:
secretName: skia-autoroll
- name: autoroll-email-creds
secret:
secretName: autoroll-email-creds
- name: notifier-chat-config
secret:
secretName: notifier-chat-config