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