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