blob: b65b34e7ae9b7127b8d1478d2ebeed80f56e61ac [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-angle-skia-autoroll
spec:
serviceName: "autoroll-be-angle-skia-autoroll"
replicas: 1
selector:
matchLabels:
app: autoroll-be-angle-skia-autoroll
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-angle-skia-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-angle-skia-autoroll
image: gcr.io/skia-public/autoroll-be:2019-12-02T18_21_00Z-borenet-cec0bcf-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJBTkdMRSIsImNvbnRhY3RzIjpbImptYWRpbGxAZ29vZ2xlLmNvbSJdLCJpc0ludGVybmFsIjpmYWxzZSwicGFyZW50TmFtZSI6IlNraWEiLCJwYXJlbnRXYXRlcmZhbGwiOiJodHRwczovL3N0YXR1cy5za2lhLm9yZyIsInJvbGxlck5hbWUiOiJhbmdsZS1za2lhLWF1dG9yb2xsIiwic2VydmljZUFjY291bnQiOiJza2lhLWF1dG9yb2xsQHNraWEtcHVibGljLmlhbS5nc2VydmljZWFjY291bnQuY29tIiwic2hlcmlmZiI6WyJodHRwczovL3NraWEtdHJlZS1zdGF0dXMuYXBwc3BvdC5jb20vY3VycmVudC1zaGVyaWZmIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL3NraWEtcmV2aWV3Lmdvb2dsZXNvdXJjZS5jb20iLCJwcm9qZWN0Ijoic2tpYSIsImNvbmZpZyI6ImNocm9taXVtIn0sImZyZWVUeXBlUmVwb01hbmFnZXIiOm51bGwsIm5vQ2hlY2tvdXRERVBTUmVwb01hbmFnZXIiOnsiY2hpbGRCcmFuY2giOiJtYXN0ZXIiLCJjaGlsZFB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WxsLUFOR0xFIiwic2tpYS9za2lhLnByaW1hcnk6VGVzdC1XaW4xMC1DbGFuZy1OVUM4aTVCRUstR1BVLUludGVsSXJpczY1NS14ODZfNjQtRGVidWctQWxsLUFOR0xFIiwic2tpYS9za2lhLnByaW1hcnk6VGVzdC1XaW4xMC1DbGFuZy1OVUNEMzQwMTBXWUtILUdQVS1JbnRlbEhENDQwMC14ODZfNjQtRGVidWctQWxsLUFOR0xFIl0sIm1heFJvbGxGcmVxdWVuY3kiOiI2aCIsInRpbWVXaW5kb3ciOiJNLUYgMDQ6MDAtMDg6MDAiLCJzdXBwb3J0c01hbnVhbFJvbGxzIjp0cnVlfQ=="
- "--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-skia-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-skia-autoroll-sa
secret:
secretName: skia-autoroll
- name: autoroll-email-creds
secret:
secretName: autoroll-email-creds
- name: notifier-chat-config
secret:
secretName: notifier-chat-config