blob: 67640b3d243926a0079346aed50ae3ca991d89e3 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-cros-orderfile-chromium-stable
spec:
serviceName: "autoroll-be-cros-orderfile-chromium-stable"
replicas: 1
selector:
matchLabels:
app: autoroll-be-cros-orderfile-chromium-stable
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-cros-orderfile-chromium-stable # 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-orderfile-chromium-stable
image: gcr.io/skia-public/autoroll-be:2019-12-11T16_14_18Z-borenet-2789512-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJDaHJvbWVPUyBPcmRlcmZpbGVzIiwiY29udGFjdHMiOlsidGN3YW5nQGdvb2dsZS5jb20iXSwiaXNJbnRlcm5hbCI6ZmFsc2UsInBhcmVudE5hbWUiOiJDaHJvbWl1bSBTdGFibGUgQnJhbmNoIiwicGFyZW50V2F0ZXJmYWxsIjoiaHR0cHM6Ly9idWlsZC5jaHJvbWl1bS5vcmciLCJyb2xsZXJOYW1lIjoiY3Jvcy1vcmRlcmZpbGUtY2hyb21pdW0tc3RhYmxlIiwic2VydmljZUFjY291bnQiOiJjaHJvbWl1bS1yZWxlYXNlLWF1dG9yb2xsQHNraWEtcHVibGljLmdvb2dsZS5jb20uaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzaGVyaWZmIjpbImMtY29tcGlsZXItY2hyb21lQGdvb2dsZS5jb20iXSwiZ2Vycml0Ijp7InVybCI6Imh0dHBzOi8vY2hyb21pdW0tcmV2aWV3Lmdvb2dsZXNvdXJjZS5jb20iLCJwcm9qZWN0IjoiY2hyb21pdW0vc3JjIiwiY29uZmlnIjoiY2hyb21pdW0tbm8tY3EifSwi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BpcyBoZXJlOlxuaHR0cHM6Ly9za2lhLmdvb2dsZXNvdXJjZS5jb20vYnVpbGRib3QvKy9tYXN0ZXIvYXV0b3JvbGwvUkVBRE1FLm1kXG5cbkNRX0VYVFJBX1RSWUJPVFM9e3suQ3FFeHRyYVRyeWJvdHN9fVxuVEJSPXt7c3RyaW5nc0pvaW4gLlJldmlld2VycyBcIixcIn19XG4iLCJHQ1NCdWNrZXQiOiJjaHJvbWVvcy1wcmVidWlsdCIsIkdDU1BhdGgiOiJhZmRvLWpvYi9vcmRlcmZpbGVzL3ZldHRlZCIsIlZlcnNpb25GaWxlIjoiY2hyb21lb3MvcHJvZmlsZXMvb3JkZXJmaWxlLm5ld2VzdC50eHQiLCJTaG9ydFJldlJlZ2V4IjoiKFxcZCspLShcXGQrKS4oXFxkKyktKFxcZCspLWJlbmNobWFyay0oXFxkKykuKFxcZCspLihcXGQrKS4wLXIoXFxkKykiLCJWZXJzaW9uUmVnZXgiOiJeY2hyb21lb3MtY2hyb21lLW9yZGVyZmlsZS1maWVsZC03OC0zOTA0LihcXGQrKS0oXFxkKyktYmVuY2htYXJrLTc4LihcXGQrKS4zOTA0LihcXGQrKS1yKFxcZCspLm9yZGVyZmlsZS54eiQifSwia3ViZXJuZXRlcyI6eyJjcHUiOiIxIiwibWVtb3J5IjoiMkdpIiwiZGlzayI6IiJ9LCJtYXhSb2xsRnJlcXVlbmN5IjoiMG0ifQ=="
- "--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-release-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-release-autoroll-sa
secret:
secretName: chromium-release-autoroll
- name: autoroll-email-creds
secret:
secretName: autoroll-email-creds
- name: notifier-chat-config
secret:
secretName: notifier-chat-config