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