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