blob: 59a58bf217985616e52dc580f09216a5d12df965 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-swiftshader-skia-autoroll
spec:
serviceName: "autoroll-be-swiftshader-skia-autoroll"
replicas: 1
selector:
matchLabels:
app: autoroll-be-swiftshader-skia-autoroll
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-swiftshader-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-swiftshader-skia-autoroll
image: gcr.io/skia-public/autoroll-be:2019-10-01T16_39_30Z-borenet-ad41711-clean
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJTd2lmdFNoYWRlciIsImNvbnRhY3RzIjpbImJlbmphbWlud2FnbmVyQGdvb2dsZS5jb20iLCJoYWxjYW5hcnlAZ29vZ2xlLmNvbSJdLCJpc0ludGVybmFsIjpmYWxzZSwicGFyZW50TmFtZSI6IlNraWEiLCJwYXJlbnRXYXRlcmZhbGwiOiJodHRwczovL3N0YXR1cy5za2lhLm9yZyIsInJvbGxlck5hbWUiOiJzd2lmdHNoYWRlci1za2lhLWF1dG9yb2xsIiwic2VydmljZUFjY291bnQiOiJza2lhLWF1dG9yb2xsQHNraWEtcHVibGljLmlhbS5nc2VydmljZWFjY291bnQuY29tIiwic2hlcmlmZiI6WyJodHRwczovL3NraWEtdHJlZS1zdGF0dXMuYXBwc3BvdC5jb20vY3VycmVudC1zaGVyaWZmIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL3NraWEtcmV2aWV3Lmdvb2dsZXNvdXJjZS5jb20iLCJwcm9qZWN0Ijoic2tpYSIsImNvbmZpZyI6ImNocm9taXVtIn0sImZyZWVUeXBlUmVwb01hbmFnZXIiOm51bGwsIm5vQ2hlY2tvdXRERVBTUmVwb01hbmFnZXIiOnsiY2hpbGRCcmFuY2giOiJtYXN0ZXIiLCJjaGlsZFBhdGgiOiJ0aGlyZF9wYXJ0eS9leHRlcm5hbHMvc3dpZnRzaGFkZXIiLCJwYXJlbnRCcmFuY2giOiJtYXN0ZXIiLCJjaGlsZFJldkxpbmtUbXBsIjoiaHR0cHM6Ly9zd2lmdHNoYWRlci5nb29nbGVzb3VyY2UuY29tL1N3aWZ0U2hhZGVyLmdpdC8rLyVzIiwiY29tbWl0TXNnVG1wbCI6IiIsInBhcmVudFJlcG8iOiJodHRwczovL3NraWEuZ29vZ2xlc291cmNlLmNvbS9za2lhLmdpdCIsImNoaWxkUmVwbyI6Imh0dHBzOi8vc3dpZnRzaGFkZXIuZ29vZ2xlc291cmNlLmNvbS9Td2lmdFNoYWRlci5naXQiLCJpbmNsdWRlQnVncyI6dHJ1ZSwiaW5jbHVkZUxvZyI6dHJ1ZSwidHJhbnNpdGl2ZURlcHMiOm51bGx9LCJrdWJlcm5ldGVzIjp7ImNwdSI6IjEiLCJtZW1vcnkiOiIyR2kiLCJkaXNrIjoiIn0sImNxRXh0cmFUcnlib3RzIjpbInNraWEucHJpbWFyeTpUZXN0LURlYmlhbjktQ2xhbmctR0NFLUdQVS1Td2lmdFNoYWRlci14ODZfNjQtRGVidWctQWxsLVN3aWZ0U2hhZGVyIl0sIm1heFJvbGxGcmVxdWVuY3kiOiI2aCIsInRpbWVXaW5kb3ciOiJNLUYgMDQ6MDAtMDg6MDAiLCJzdXBwb3J0c01hbnVhbFJvbGxzIjp0cnVlfQ=="
- "--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