blob: def5bf1a8de716b58bde6fc0f7f3a64a8ce16d18 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-cros-afdo-silvermont-chromium
spec:
serviceName: "autoroll-be-cros-afdo-silvermont-chromium"
replicas: 1
selector:
matchLabels:
app: autoroll-be-cros-afdo-silvermont-chromium
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-cros-afdo-silvermont-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-silvermont-chromium
image: gcr.io/skia-public/autoroll-be:2019-12-02T18_21_00Z-borenet-cec0bcf-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJDaHJvbWVPUyBTaWx2ZXJtb250IEFGRE8gcHJvZmlsZSIsImNvbnRhY3RzIjpbInRjd2FuZ0Bnb29nbGUuY29tIl0sImlzSW50ZXJuYWwiOmZhbHNlLCJwYXJlbnROYW1lIjoiQ2hyb21pdW0iLCJwYXJlbnRXYXRlcmZhbGwiOiJodHRwczovL2J1aWxkLmNocm9taXVtLm9yZyIsInJvbGxlck5hbWUiOiJjcm9zLWFmZG8tc2lsdmVybW9udC1jaHJvbWl1bSIsInNlcnZpY2VBY2NvdW50IjoiY2hyb21pdW0tYXV0b3JvbGxAc2tpYS1wdWJsaWMuZ29vZ2xlLmNvbS5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInNoZXJpZmYiOlsiYy1jb21waWxlci1jaHJvbWVAZ29vZ2xlLmNvbSJdLCJnZXJyaXQiOnsidXJsIjoiaHR0cHM6Ly9jaHJvbWl1bS1yZXZpZXcuZ29vZ2xlc291cmNlLmNvbSIsInByb2plY3QiOiJjaHJvbWl1bS9zcmMiLCJjb25maWciOiJjaHJvbWl1bSJ9LCJmcmV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OlxuaHR0cHM6Ly9za2lhLmdvb2dsZXNvdXJjZS5jb20vYnVpbGRib3QvKy9tYXN0ZXIvYXV0b3JvbGwvUkVBRE1FLm1kXG5cbnt7aWYgLkNxRXh0cmFUcnlib3RzfX1DcS1JbmNsdWRlLVRyeWJvdHM6IHt7LkNxRXh0cmFUcnlib3RzfX1cbnt7ZW5kfX1UYnI6IHt7c3RyaW5nc0pvaW4gLlJldmlld2VycyBcIixcIn19XG4iLCJHQ1NCdWNrZXQiOiJjaHJvbWVvcy1wcmVidWlsdCIsIkdDU1BhdGgiOiJhZmRvLWpvYi92ZXR0ZWQvcmVsZWFzZSIsIlZlcnNpb25GaWxlIjoiY2hyb21lb3MvcHJvZmlsZXMvc2lsdmVybW9udC5hZmRvLm5ld2VzdC50eHQiLCJTaG9ydFJldlJlZ2V4IjoiKFxcZCspLVxcZCsuXFxkKy0oXFxkKyktYmVuY2htYXJrLShcXGQrKS4oXFxkKykuKFxcZCspLihcXGQrKS1yKFxcZCspIiwiVmVyc2lvblJlZ2V4IjoiXmNocm9tZW9zLWNocm9tZS1hbWQ2NC1zaWx2ZXJtb250LShcXGQrKS1cXGQrLlxcZCstKFxcZCspLWJlbmNobWFyay0oXFxkKykuKFxcZCspLihcXGQrKS4oXFxkKyktcihcXGQrKS1yZWRhY3RlZC5hZmRvLnh6JCJ9LCJrdWJlcm5ldGVzIjp7ImNwdSI6IjEiLCJtZW1vcnkiOiIyR2kiLCJkaXNrIjoiIn0sIm1heFJvbGxGcmVxdWVuY3kiOiIwbSJ9"
- "--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