blob: 43a768c9c21e725662ad270dc9cf87f911e090d2 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-glslang-angle-autoroll
spec:
serviceName: "autoroll-be-glslang-angle-autoroll"
replicas: 1
selector:
matchLabels:
app: autoroll-be-glslang-angle-autoroll
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-glslang-angle-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-glslang-angle-autoroll
image: gcr.io/skia-public/autoroll-be:2019-12-02T18_21_00Z-borenet-cec0bcf-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJnbHNsYW5nIiwiY29udGFjdHMiOlsiZ2VvZmZsYW5nQGNocm9taXVtLm9yZyIsImptYWRpbGxAY2hyb21pdW0ub3JnIiwic3lvdXNzZWZpQGNocm9taXVtLm9yZyIsInlub3Zpa292QGNocm9taXVtLm9yZyJdLCJpc0ludGVybmFsIjpmYWxzZSwicGFyZW50TmFtZSI6IkFOR0xFIiwicGFyZW50V2F0ZXJmYWxsIjoiaHR0cHM6Ly9jaS5jaHJvbWl1bS5vcmcvcC9hbmdsZS9nL2NpL2NvbnNvbGUiLCJyb2xsZXJOYW1lIjoiZ2xzbGFuZy1hbmdsZS1hdXRvcm9sbCIsInNlcnZpY2VBY2NvdW50IjoiYW5nbGUtYXV0b3JvbGxAc2tpYS1wdWJsaWMuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzaGVyaWZmIjpbImh0dHBzOi8vcm90YS1uZy5hcHBzcG90LmNvbS9sZWdhY3kvc2hlcmlmZl9hbmdsZS5qc29uIl0sInNoZXJpZmZCYWNrdXAiOlsieW5vdmlrb3ZAY2hyb21pdW0ub3JnIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL2Nocm9taXVtLXJldmlldy5nb29nbGVzb3VyY2UuY29tIiwicHJvamVjdCI6ImFuZ2xlL2FuZ2xlIiwiY29uZmlnIjoiYW5nbGUifSwiZnJlZVR5cGVSZXBvTWFuYWdlciI6bnVsbCwibm9DaGVja291dERFUFNSZXBvTWFuYWdlciI6eyJjaGlsZEJyYW5jaCI6Im1hc3RlciIsImNoaWxkUGF0aCI6InRoaXJkX3BhcnR5L2dsc2xhbmcvc3JjIiwiaW5jbHVkZUJ1Z3MiOmZhbHNlLCJpbmNsdWRlTG9nIjpmYWxzZSwicGFyZW50QnJhbmNoIjoibWFzdGVyIiwicGFyZW50UmVwbyI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9hbmdsZS9hbmdsZS5naXQiLCJjaGlsZFJldkxpbmtUbXBsIjoiaHR0cHM6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2V4dGVybmFsL2dpdGh1Yi5jb20vS2hyb25vc0dyb3VwL2dsc2xhbmcvKy8lcyIsImNvbW1pdE1zZ1RtcGwiOiIiLCJjaGlsZFJlcG8iOiJodHRwczovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vZXh0ZXJuYWwvZ2l0aHViLmNvbS9LaHJvbm9zR3JvdXAvZ2xzbGFuZyIsInRyYW5zaXRpdmVEZXBzIjpudWxsfSwia3ViZXJuZXRlcyI6eyJjcHUiOiIxIiwibWVtb3J5IjoiMkdpIiwiZGlzayI6IiJ9LCJtYXhSb2xsRnJlcXVlbmN5IjoiNmgiLCJ0aW1lV2luZG93IjoiTS1GIDA3OjAwLTEwOjAwIn0="
- "--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-angle-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-angle-autoroll-sa
secret:
secretName: angle-autoroll
- name: autoroll-email-creds
secret:
secretName: autoroll-email-creds
- name: notifier-chat-config
secret:
secretName: notifier-chat-config