blob: 73be27d8a0cb12354405c78c0712db74323a9221 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-vulkan-headers-angle-autoroll
spec:
serviceName: "autoroll-be-vulkan-headers-angle-autoroll"
replicas: 1
selector:
matchLabels:
app: autoroll-be-vulkan-headers-angle-autoroll
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-vulkan-headers-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-vulkan-headers-angle-autoroll
image: gcr.io/skia-public/autoroll-be:2019-11-08T17_35_10Z-borenet-e6e3474-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJWdWxrYW4tSGVhZGVycyIsImNvbnRhY3RzIjpbImFuZ2xlLXRlYW1AZ29vZ2xlLmNvbSIsImptYWRpbGxAY2hyb21pdW0ub3JnIl0sImlzSW50ZXJuYWwiOmZhbHNlLCJwYXJlbnROYW1lIjoiQU5HTEUiLCJwYXJlbnRXYXRlcmZhbGwiOiJodHRwczovL2NpLmNocm9taXVtLm9yZy9wL2FuZ2xlL2cvY2kvY29uc29sZSIsInJvbGxlck5hbWUiOiJ2dWxrYW4taGVhZGVycy1hbmdsZS1hdXRvcm9sbCIsInNlcnZpY2VBY2NvdW50IjoiYW5nbGUtYXV0b3JvbGxAc2tpYS1wdWJsaWMuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzaGVyaWZmIjpbImh0dHBzOi8vcm90YS1uZy5hcHBzcG90LmNvbS9sZWdhY3kvc2hlcmlmZl9hbmdsZS5qc29uIl0sInNoZXJpZmZCYWNrdXAiOlsieW5vdmlrb3ZAY2hyb21pdW0ub3JnIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL2Nocm9taXVtLXJldmlldy5nb29nbGVzb3VyY2UuY29tIiwicHJvamVjdCI6ImFuZ2xlL2FuZ2xlIiwiY29uZmlnIjoiYW5nbGUifSwiZnJlZVR5cGVSZXBvTWFuYWdlciI6bnVsbCwibm9DaGVja291dERFUFNSZXBvTWFuYWdlciI6eyJjaGlsZEJyYW5jaCI6Im1hc3RlciIsImNoaWxkUGF0aCI6InRoaXJkX3BhcnR5L3Z1bGthbi1oZWFkZXJzL3NyYyIsInBhcmVudEJyYW5jaCI6Im1hc3RlciIsImNoaWxkUmV2TGlua1RtcGwiOiJodHRwczovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vZXh0ZXJuYWwvZ2l0aHViLmNvbS9LaHJvbm9zR3JvdXAvVnVsa2FuLUhlYWRlcnMuZ2l0LysvJXMiLCJjb21taXRNc2dUbXBsIjoiIiwicGFyZW50UmVwbyI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9hbmdsZS9hbmdsZS5naXQiLCJjaGlsZFJlcG8iOiJodHRwczovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vZXh0ZXJuYWwvZ2l0aHViLmNvbS9LaHJvbm9zR3JvdXAvVnVsa2FuLUhlYWRlcnMuZ2l0IiwiaW5jbHVkZUJ1Z3MiOnRydWUsImluY2x1ZGVMb2ciOnRydWUsInRyYW5zaXRpdmVEZXBzIjpudWxsfSwia3ViZXJuZXRlcyI6eyJjcHUiOiIxIiwibWVtb3J5IjoiMkdpIiwiZGlzayI6IiJ9LCJtYXhSb2xsRnJlcXVlbmN5IjoiNmgiLCJ0aW1lV2luZG93IjoiTS1GIDA3OjAwLTEwOjAwIiwic3VwcG9ydHNNYW51YWxSb2xscyI6dHJ1ZX0="
- "--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