blob: a38941e6025b69d356f30c869edea7fee99d2a60 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-material-i18n-ios-chromium
spec:
serviceName: "autoroll-be-material-i18n-ios-chromium"
replicas: 1
selector:
matchLabels:
app: autoroll-be-material-i18n-ios-chromium
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-material-i18n-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-i18n-ios-chromium
image: gcr.io/skia-public/autoroll-be:2019-12-02T18_21_00Z-borenet-cec0bcf-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJtYXRlcmlhbC1pbnRlcm5hdGlvbmFsaXphdGlvbi1pb3MiLCJjb250YWN0cyI6WyJqYnVkb3JpY2tAY2hyb21pdW0ub3JnIl0sImlzSW50ZXJuYWwiOmZhbHNlLCJwYXJlbnROYW1lIjoiQ2hyb21pdW0iLCJwYXJlbnRXYXRlcmZhbGwiOiJodHRwczovL2J1aWxkLmNocm9taXVtLm9yZyIsInJvbGxlck5hbWUiOiJtYXRlcmlhbC1pMThuLWlvcy1jaHJvbWl1bSIsInNlcnZpY2VBY2NvdW50IjoiY2hyb21pdW0tYXV0b3JvbGxAc2tpYS1wdWJsaWMuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzaGVyaWZmIjpbImJsaW5nLXAxMC1yb2xsc0Bnb29nbGUuY29tIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL2Nocm9taXVtLXJldmlldy5nb29nbGVzb3VyY2UuY29tIiwicHJvamVjdCI6ImNocm9taXVtL3NyYyIsImNvbmZpZyI6ImNocm9taXVtIn0sImZyZWVUeXBlUmVwb01hbmFnZXIiOm51bGwsIm5vQ2hlY2tvdXRERVBTUmVwb01hbmFnZXIiOnsiY2hpbGRCcmFuY2giOiJzdGFibGUiLCJjaGlsZFBhdGgiOiJzcmMvaW9zL3RoaXJkX3BhcnR5L21hdGVyaWFsX2ludGVybmF0aW9uYWxpemF0aW9uX2lvcy9zcmMiLCJpbmNsdWRlQnVncyI6ZmFsc2UsImluY2x1ZGVMb2ciOnRydWUsInBhcmVudEJyYW5jaCI6Im1hc3RlciIsInBhcmVudFJlcG8iOiJodHRwczovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vY2hyb21pdW0vc3JjLmdpdCIsImNoaWxkUmV2TGlua1RtcGwiOiJodHRwczovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vZXh0ZXJuYWwvZ2l0aHViLmNvbS9tYXRlcmlhbC1mb3VuZGF0aW9uL21hdGVyaWFsLWludGVybmF0aW9uYWxpemF0aW9uLWlvcy8rLyVzIiwiY29tbWl0TXNnVG1wbCI6IiIsImNoaWxkUmVwbyI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9leHRlcm5hbC9naXRodWIuY29tL21hdGVyaWFsLWZvdW5kYXRpb24vbWF0ZXJpYWwtaW50ZXJuYXRpb25hbGl6YXRpb24taW9zIiwidHJhbnNpdGl2ZURlcHMiOm51bGx9LCJrdWJlcm5ldGVzIjp7ImNwdSI6IjEiLCJtZW1vcnkiOiIyR2kiLCJkaXNrIjoiIn0sImNxRXh0cmFUcnlib3RzIjpbImx1Y2kuY2hyb21lLnRyeTppb3MtaW50ZXJuYWwtbWRjIl0sIm1heFJvbGxGcmVxdWVuY3kiOiIwbSJ9"
- "--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