blob: ee679e2835dda59d19e3ee07143525082e24da04 [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-12-02T18_21_00Z-borenet-cec0bcf-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJTd2lmdFNoYWRlciIsImNvbnRhY3RzIjpbImJlbmphbWlud2FnbmVyQGdvb2dsZS5jb20iLCJoYWxjYW5hcnlAZ29vZ2xlLmNvbSJdLCJpc0ludGVybmFsIjpmYWxzZSwicGFyZW50TmFtZSI6IlNraWEiLCJwYXJlbnRXYXRlcmZhbGwiOiJodHRwczovL3N0YXR1cy5za2lhLm9yZyIsInJvbGxlck5hbWUiOiJzd2lmdHNoYWRlci1za2lhLWF1dG9yb2xsIiwic2VydmljZUFjY291bnQiOiJza2lhLWF1dG9yb2xsQHNraWEtcHVibGljLmlhbS5nc2VydmljZWFjY291bnQuY29tIiwic2hlcmlmZiI6WyJodHRwczovL3NraWEtdHJlZS1zdGF0dXMuYXBwc3BvdC5jb20vY3VycmVudC1zaGVyaWZmIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL3NraWEtcmV2aWV3Lmdvb2dsZXNvdXJjZS5jb20iLCJwcm9qZWN0Ijoic2tpYSIsImNvbmZpZyI6ImNocm9taXVtIn0sImZyZWVUeXBlUmVwb01hbmFnZXIiOm51bGwsIm5vQ2hlY2tvdXRERVBTUmVwb01hbmFnZXIiOnsiY2hpbGRCcmFuY2giOiJtYXN0ZXIiLCJjaGlsZFBhdGgiOiJ0aGlyZF9wYXJ0eS9leHRlcm5hbHMvc3dpZnRzaGFkZXIiLCJpbmNsdWRlQnVncyI6dHJ1ZSwiaW5jbHVkZUxvZyI6dHJ1ZSwicGFyZW50QnJhbmNoIjoibWFzdGVyIiwicGFyZW50UmVwbyI6Imh0dHBzOi8vc2tpYS5nb29nbGVzb3VyY2UuY29tL3NraWEuZ2l0IiwiY2hpbGRSZXZMaW5rVG1wbCI6Imh0dHBzOi8vc3dpZnRzaGFkZXIuZ29vZ2xlc291cmNlLmNvbS9Td2lmdFNoYWRlci5naXQvKy8lcyIsImNvbW1pdE1zZ1RtcGwiOiIiLCJidWdQcm9qZWN0Ijoic2tpYSIsImNoaWxkUmVwbyI6Imh0dHBzOi8vc3dpZnRzaGFkZXIuZ29vZ2xlc291cmNlLmNvbS9Td2lmdFNoYWRlci5naXQiLCJ0cmFuc2l0aXZlRGVwcyI6bnVsbH0sImt1YmVybmV0ZXMiOnsiY3B1IjoiMSIsIm1lbW9yeSI6IjJHaSIsImRpc2siOiIifSwiY3FFeHRyYVRyeWJvdHMiOlsic2tpYS9za2lhLnByaW1hcnk6VGVzdC1EZWJpYW45LUNsYW5nLUdDRS1HUFUtU3dpZnRTaGFkZXIteDg2XzY0LURlYnVnLUFsbC1Td2lmdFNoYWRlciJdLCJtYXhSb2xsRnJlcXVlbmN5IjoiNmgiLCJ0aW1lV2luZG93IjoiTS1GIDA0OjAwLTA4OjAwIiwic3VwcG9ydHNNYW51YWxSb2xscyI6dHJ1ZX0="
- "--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