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