blob: f9d3ea0de50d278dad6286e32431066bad1d7e13 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-material-text-accessibility-ios-chromium
spec:
serviceName: "autoroll-be-material-text-accessibility-ios-chromium"
replicas: 1
selector:
matchLabels:
app: autoroll-be-material-text-accessibility-ios-chromium
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-material-text-accessibility-ios-chromium # 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-material-text-accessibility-ios-chromium
image: gcr.io/skia-public/autoroll-be:2019-10-01T16_39_30Z-borenet-ad41711-clean
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJtYXRlcmlhbC10ZXh0LWFjY2Vzc2liaWxpdHktaW9zIiwiY29udGFjdHMiOlsiamJ1ZG9yaWNrQGNocm9taXVtLm9yZyJdLCJpc0ludGVybmFsIjpmYWxzZSwicGFyZW50TmFtZSI6IkNocm9taXVtIiwicGFyZW50V2F0ZXJmYWxsIjoiaHR0cHM6Ly9idWlsZC5jaHJvbWl1bS5vcmciLCJyb2xsZXJOYW1lIjoibWF0ZXJpYWwtdGV4dC1hY2Nlc3NpYmlsaXR5LWlvcy1jaHJvbWl1bSIsInNlcnZpY2VBY2NvdW50IjoiY2hyb21pdW0tYXV0b3JvbGxAc2tpYS1wdWJsaWMuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzaGVyaWZmIjpbImJsaW5nLXAxMC1yb2xsc0Bnb29nbGUuY29tIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL2Nocm9taXVtLXJldmlldy5nb29nbGVzb3VyY2UuY29tIiwicHJvamVjdCI6ImNocm9taXVtL3NyYyIsImNvbmZpZyI6ImNocm9taXVtIn0sImZyZWVUeXBlUmVwb01hbmFnZXIiOm51bGwsIm5vQ2hlY2tvdXRERVBTUmVwb01hbmFnZXIiOnsiY2hpbGRCcmFuY2giOiJzdGFibGUiLCJjaGlsZFBhdGgiOiJzcmMvaW9zL3RoaXJkX3BhcnR5L21hdGVyaWFsX3RleHRfYWNjZXNzaWJpbGl0eV9pb3Mvc3JjIiwicGFyZW50QnJhbmNoIjoibWFzdGVyIiwiY2hpbGRSZXZMaW5rVG1wbCI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9leHRlcm5hbC9naXRodWIuY29tL21hdGVyaWFsLWZvdW5kYXRpb24vbWF0ZXJpYWwtdGV4dC1hY2Nlc3NpYmlsaXR5LWlvcy8rLyVzIiwiY29tbWl0TXNnVG1wbCI6IiIsInBhcmVudFJlcG8iOiJodHRwczovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vY2hyb21pdW0vc3JjLmdpdCIsImNoaWxkUmVwbyI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9leHRlcm5hbC9naXRodWIuY29tL21hdGVyaWFsLWZvdW5kYXRpb24vbWF0ZXJpYWwtdGV4dC1hY2Nlc3NpYmlsaXR5LWlvcyIsImluY2x1ZGVCdWdzIjpmYWxzZSwiaW5jbHVkZUxvZyI6dHJ1ZSwidHJhbnNpdGl2ZURlcHMiOm51bGx9LCJrdWJlcm5ldGVzIjp7ImNwdSI6IjEiLCJtZW1vcnkiOiIyR2kiLCJkaXNrIjoiIn0sImNxRXh0cmFUcnlib3RzIjpbImx1Y2kuY2hyb21lLnRyeTppb3MtaW50ZXJuYWwtbWRjIl0sIm1heFJvbGxGcmVxdWVuY3kiOiIwbSJ9"
- "--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-chromium-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-chromium-autoroll-sa
secret:
secretName: chromium-autoroll
- name: autoroll-email-creds
secret:
secretName: autoroll-email-creds
- name: notifier-chat-config
secret:
secretName: notifier-chat-config