blob: d3792cf216cd4a874f2e2895e18f7e8e214d59cf [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-skia-lottie-ci-autoroll
spec:
serviceName: "autoroll-be-skia-lottie-ci-autoroll"
replicas: 1
selector:
matchLabels:
app: autoroll-be-skia-lottie-ci-autoroll
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-skia-lottie-ci-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-skia-lottie-ci-autoroll
image: gcr.io/skia-public/autoroll-be:2019-10-01T16_39_30Z-borenet-ad41711-clean
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJTa2lhIiwiY29udGFjdHMiOlsiYm9yZW5ldEBnb29nbGUuY29tIl0sImlzSW50ZXJuYWwiOmZhbHNlLCJwYXJlbnROYW1lIjoiTG90dGllIENJIiwicGFyZW50V2F0ZXJmYWxsIjoiaHR0cHM6Ly9zdGF0dXMuc2tpYS5vcmcvcmVwby9sb3R0aWUtY2kiLCJyb2xsZXJOYW1lIjoic2tpYS1sb3R0aWUtY2ktYXV0b3JvbGwiLCJzZXJ2aWNlQWNjb3VudCI6InNraWEtYXV0b3JvbGxAc2tpYS1wdWJsaWMuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzaGVyaWZmIjpbImJvcmVuZXRAZ29vZ2xlLmNvbSJdLCJnZXJyaXQiOnsidXJsIjoiaHR0cHM6Ly9za2lhLXJldmlldy5nb29nbGVzb3VyY2UuY29tIiwicHJvamVjdCI6ImxvdHRpZS1jaSIsImNvbmZpZyI6ImNocm9taXVtIn0sImRlcHNSZXBvTWFuYWdlciI6eyJjaGlsZEJyYW5jaCI6Im1hc3RlciIsImNoaWxkUGF0aCI6InNraWEiLCJwYXJlbnRCcmFuY2giOiJtYXN0ZXIiLCJjaGlsZFJldkxpbmtUbXBsIjoiaHR0cHM6Ly9za2lhLmdvb2dsZXNvdXJjZS5jb20vc2tpYS5naXQvKy8lcyIsImNvbW1pdE1zZ1RtcGwiOiIiLCJwcmVVcGxvYWRTdGVwcyI6WyJUcmFpbkluZnJhIl0sInBhcmVudFJlcG8iOiJodHRwczovL3NraWEuZ29vZ2xlc291cmNlLmNvbS9sb3R0aWUtY2kuZ2l0IiwiaW5jbHVkZUJ1Z3MiOmZhbHNlLCJpbmNsdWRlTG9nIjp0cnVlfSwiZnJlZVR5cGVSZXBvTWFuYWdlciI6bnVsbCwia3ViZXJuZXRlcyI6eyJjcHUiOiIxIiwibWVtb3J5IjoiOEdpIiwiZGlzayI6IjUwR2kifSwiY3FFeHRyYVRyeWJvdHMiOlsic2tpYS5wcmltYXJ5OkhvdXNla2VlcGVyLVBlckNvbW1pdC1JbmZyYVRlc3RzIl0sIm1heFJvbGxGcmVxdWVuY3kiOiIwbSIsInNhZmV0eVRocm90dGxlIjp7ImF0dGVtcHRDb3VudCI6MCwidGltZVdpbmRvdyI6IjFoIn0sInN1cHBvcnRzTWFudWFsUm9sbHMiOnRydWV9"
- "--email_creds=/var/secrets/autoroll-email-creds"
- "--firestore_instance=production"
- "--port=:8000"
- "--prom_port=:20000"
- "--recipes_cfg=/usr/local/share/autoroll/recipes.cfg"
- "--workdir=/data"
- "--chat_webhooks_file=/etc/notifier-chat-config/chat_config.txt"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: autoroll-be-skia-lottie-ci-autoroll-storage
mountPath: /data
- 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: /data/tmp
resources:
limits:
memory: "8Gi"
cpu: 1
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 600
periodSeconds: 60
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
volumeClaimTemplates:
- metadata:
name: autoroll-be-skia-lottie-ci-autoroll-storage
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 50Gi