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