blob: feba8deaf6a42e32bb06194bbb71f89749470b02 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-glslang-angle-autoroll
spec:
serviceName: "autoroll-be-glslang-angle-autoroll"
replicas: 1
selector:
matchLabels:
app: autoroll-be-glslang-angle-autoroll
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-glslang-angle-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-glslang-angle-autoroll
image: gcr.io/skia-public/autoroll-be:2019-10-01T16_39_30Z-borenet-ad41711-clean
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJnbHNsYW5nIiwiY29udGFjdHMiOlsiZ2VvZmZsYW5nQGNocm9taXVtLm9yZyIsImptYWRpbGxAY2hyb21pdW0ub3JnIiwic3lvdXNzZWZpQGNocm9taXVtLm9yZyIsInlub3Zpa292QGNocm9taXVtLm9yZyJdLCJpc0ludGVybmFsIjpmYWxzZSwicGFyZW50TmFtZSI6IkFOR0xFIiwicGFyZW50V2F0ZXJmYWxsIjoiaHR0cHM6Ly9jaS5jaHJvbWl1bS5vcmcvcC9hbmdsZS9nL2NpL2NvbnNvbGUiLCJyb2xsZXJOYW1lIjoiZ2xzbGFuZy1hbmdsZS1hdXRvcm9sbCIsInNlcnZpY2VBY2NvdW50IjoiYW5nbGUtYXV0b3JvbGxAc2tpYS1wdWJsaWMuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzaGVyaWZmIjpbImh0dHBzOi8vcm90YS1uZy5hcHBzcG90LmNvbS9sZWdhY3kvc2hlcmlmZl9hbmdsZS5qc29uIl0sInNoZXJpZmZCYWNrdXAiOlsieW5vdmlrb3ZAY2hyb21pdW0ub3JnIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL2Nocm9taXVtLXJldmlldy5nb29nbGVzb3VyY2UuY29tIiwicHJvamVjdCI6ImFuZ2xlL2FuZ2xlIiwiY29uZmlnIjoiYW5nbGUifSwiZnJlZVR5cGVSZXBvTWFuYWdlciI6bnVsbCwibm9DaGVja291dERFUFNSZXBvTWFuYWdlciI6eyJjaGlsZEJyYW5jaCI6Im1hc3RlciIsImNoaWxkUGF0aCI6Ii4vdGhpcmRfcGFydHkvZ2xzbGFuZy9zcmMiLCJwYXJlbnRCcmFuY2giOiJtYXN0ZXIiLCJjaGlsZFJldkxpbmtUbXBsIjoiaHR0cHM6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2V4dGVybmFsL2dpdGh1Yi5jb20vS2hyb25vc0dyb3VwL2dsc2xhbmcvKy8lcyIsImNvbW1pdE1zZ1RtcGwiOiIiLCJwYXJlbnRSZXBvIjoiaHR0cHM6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2FuZ2xlL2FuZ2xlLmdpdCIsImNoaWxkUmVwbyI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9leHRlcm5hbC9naXRodWIuY29tL0tocm9ub3NHcm91cC9nbHNsYW5nIiwiaW5jbHVkZUJ1Z3MiOmZhbHNlLCJpbmNsdWRlTG9nIjpmYWxzZSwidHJhbnNpdGl2ZURlcHMiOm51bGx9LCJrdWJlcm5ldGVzIjp7ImNwdSI6IjEiLCJtZW1vcnkiOiIyR2kiLCJkaXNrIjoiIn0sIm1heFJvbGxGcmVxdWVuY3kiOiI2aCIsInRpbWVXaW5kb3ciOiJNLUYgMDc6MDAtMTA6MDAifQ=="
- "--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-angle-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-angle-autoroll-sa
secret:
secretName: angle-autoroll
- name: autoroll-email-creds
secret:
secretName: autoroll-email-creds
- name: notifier-chat-config
secret:
secretName: notifier-chat-config