blob: 18b5ad06471733f562642b6955d1143ac36973f7 [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-30T16_14_21Z-borenet-2a99232-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJnbHNsYW5nIiwiY29udGFjdHMiOlsiZ2VvZmZsYW5nQGNocm9taXVtLm9yZyIsImptYWRpbGxAY2hyb21pdW0ub3JnIiwic3lvdXNzZWZpQGNocm9taXVtLm9yZyIsInlub3Zpa292QGNocm9taXVtLm9yZyJdLCJpc0ludGVybmFsIjpmYWxzZSwicGFyZW50TmFtZSI6IkFOR0xFIiwicGFyZW50V2F0ZXJmYWxsIjoiaHR0cHM6Ly9jaS5jaHJvbWl1bS5vcmcvcC9hbmdsZS9nL2NpL2NvbnNvbGUiLCJyb2xsZXJOYW1lIjoiZ2xzbGFuZy1hbmdsZS1hdXRvcm9sbCIsInNlcnZpY2VBY2NvdW50IjoiYW5nbGUtYXV0b3JvbGxAc2tpYS1wdWJsaWMuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzaGVyaWZmIjpbImh0dHBzOi8vcm90YS1uZy5hcHBzcG90LmNvbS9sZWdhY3kvc2hlcmlmZl9hbmdsZS5qc29uIl0sInNoZXJpZmZCYWNrdXAiOlsieW5vdmlrb3ZAY2hyb21pdW0ub3JnIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL2Nocm9taXVtLXJldmlldy5nb29nbGVzb3VyY2UuY29tIiwicHJvamVjdCI6ImFuZ2xlL2FuZ2xlIiwiY29uZmlnIjoiYW5nbGUifSwiZnJlZVR5cGVSZXBvTWFuYWdlciI6bnVsbCwibm9DaGVja291dERFUFNSZXBvTWFuYWdlciI6eyJjaGlsZEJyYW5jaCI6Im1hc3RlciIsImNoaWxkUGF0aCI6InRoaXJkX3BhcnR5L2dsc2xhbmcvc3JjIiwicGFyZW50QnJhbmNoIjoibWFzdGVyIiwiY2hpbGRSZXZMaW5rVG1wbCI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9leHRlcm5hbC9naXRodWIuY29tL0tocm9ub3NHcm91cC9nbHNsYW5nLysvJXMiLCJjb21taXRNc2dUbXBsIjoiIiwicGFyZW50UmVwbyI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9hbmdsZS9hbmdsZS5naXQiLCJjaGlsZFJlcG8iOiJodHRwczovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vZXh0ZXJuYWwvZ2l0aHViLmNvbS9LaHJvbm9zR3JvdXAvZ2xzbGFuZyIsImluY2x1ZGVCdWdzIjpmYWxzZSwiaW5jbHVkZUxvZyI6ZmFsc2UsInRyYW5zaXRpdmVEZXBzIjpudWxsfSwia3ViZXJuZXRlcyI6eyJjcHUiOiIxIiwibWVtb3J5IjoiMkdpIiwiZGlzayI6IiJ9LCJtYXhSb2xsRnJlcXVlbmN5IjoiNmgiLCJ0aW1lV2luZG93IjoiTS1GIDA3OjAwLTEwOjAwIn0="
- "--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