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