blob: 333bf63fc455efcfcba88935e60d3c8eb3c0e94e [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-12-02T18_21_00Z-borenet-cec0bcf-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJWdWxrYW4tSGVhZGVycyIsImNvbnRhY3RzIjpbImFuZ2xlLXRlYW1AZ29vZ2xlLmNvbSIsImptYWRpbGxAY2hyb21pdW0ub3JnIl0sImlzSW50ZXJuYWwiOmZhbHNlLCJwYXJlbnROYW1lIjoiQU5HTEUiLCJwYXJlbnRXYXRlcmZhbGwiOiJodHRwczovL2NpLmNocm9taXVtLm9yZy9wL2FuZ2xlL2cvY2kvY29uc29sZSIsInJvbGxlck5hbWUiOiJ2dWxrYW4taGVhZGVycy1hbmdsZS1hdXRvcm9sbCIsInNlcnZpY2VBY2NvdW50IjoiYW5nbGUtYXV0b3JvbGxAc2tpYS1wdWJsaWMuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzaGVyaWZmIjpbImh0dHBzOi8vcm90YS1uZy5hcHBzcG90LmNvbS9sZWdhY3kvc2hlcmlmZl9hbmdsZS5qc29uIl0sInNoZXJpZmZCYWNrdXAiOlsieW5vdmlrb3ZAY2hyb21pdW0ub3JnIl0sImdlcnJpdCI6eyJ1cmwiOiJodHRwczovL2Nocm9taXVtLXJldmlldy5nb29nbGVzb3VyY2UuY29tIiwicHJvamVjdCI6ImFuZ2xlL2FuZ2xlIiwiY29uZmlnIjoiYW5nbGUifSwiZGVwc1JlcG9NYW5hZ2VyIjp7ImNoaWxkQnJhbmNoIjoibWFzdGVyIiwiY2hpbGRQYXRoIjoidGhpcmRfcGFydHkvdnVsa2FuLWhlYWRlcnMvc3JjIiwiaW5jbHVkZUJ1Z3MiOnRydWUsImluY2x1ZGVMb2ciOnRydWUsInBhcmVudEJyYW5jaCI6Im1hc3RlciIsInBhcmVudFJlcG8iOiJodHRwczovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vYW5nbGUvYW5nbGUuZ2l0IiwiY2hpbGRSZXZMaW5rVG1wbCI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9leHRlcm5hbC9naXRodWIuY29tL0tocm9ub3NHcm91cC9WdWxrYW4tSGVhZGVycy5naXQvKy8lcyIsImNvbW1pdE1zZ1RtcGwiOiIiLCJjaGlsZFN1YmRpciI6ImFuZ2xlIiwiYnVnUHJvamVjdCI6ImFuZ2xlcHJvamVjdCIsInByZVVwbG9hZFN0ZXBzIjpbIkFOR0xFQ29kZUdlbmVyYXRpb24iXX0sImZyZWVUeXBlUmVwb01hbmFnZXIiOm51bGwsImt1YmVybmV0ZXMiOnsiY3B1IjoiMSIsIm1lbW9yeSI6IjJHaSIsImRpc2siOiI1MEdpIn0sIm1heFJvbGxGcmVxdWVuY3kiOiI2aCIsInRpbWVXaW5kb3ciOiJNLUYgMDc6MDAtMTA6MDAiLCJzdXBwb3J0c01hbnVhbFJvbGxzIjp0cnVlfQ=="
- "--email_creds=/var/secrets/autoroll-email-creds"
- "--firestore_instance=production"
- "--port=:8000"
- "--prom_port=:20000"
- "--recipes_cfg=/usr/local/share/autoroll/recipes.cfg"
- "--workdir=/data"
- "--chat_webhooks_file=/etc/notifier-chat-config/chat_config.txt"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: autoroll-be-vulkan-headers-angle-autoroll-storage
mountPath: /data
- 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: /data/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
volumeClaimTemplates:
- metadata:
name: autoroll-be-vulkan-headers-angle-autoroll-storage
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 50Gi