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