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