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