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