blob: 6e9294229391333a18d956186de5087101ddd889 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-vulkan-validation-layers-angle-autoroll
spec:
serviceName: "autoroll-be-vulkan-validation-layers-angle-autoroll"
replicas: 1
selector:
matchLabels:
app: autoroll-be-vulkan-validation-layers-angle-autoroll
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-vulkan-validation-layers-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-validation-layers-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=eyJjaGlsZE5hbWUiOiJWdWxrYW4tVmFsaWRhdGlvbkxheWVycyIsImNvbnRhY3RzIjpbImFuZ2xlLXRlYW1AZ29vZ2xlLmNvbSIsImptYWRpbGxAY2hyb21pdW0ub3JnIl0sImlzSW50ZXJuYWwiOmZhbHNlLCJwYXJlbnROYW1lIjoiQU5HTEUiLCJwYXJlbnRXYXRlcmZhbGwiOiJodHRwczovL2NpLmNocm9taXVtLm9yZy9wL2FuZ2xlL2cvY2kvY29uc29sZSIsInJvbGxlck5hbWUiOiJ2dWxrYW4tdmFsaWRhdGlvbi1sYXllcnMtYW5nbGUtYXV0b3JvbGwiLCJzZXJ2aWNlQWNjb3VudCI6ImFuZ2xlLWF1dG9yb2xsQHNraWEtcHVibGljLmlhbS5nc2VydmljZWFjY291bnQuY29tIiwic2hlcmlmZiI6WyJodHRwczovL3JvdGEtbmcuYXBwc3BvdC5jb20vbGVnYWN5L3NoZXJpZmZfYW5nbGUuanNvbiJdLCJzaGVyaWZmQmFja3VwIjpbInlub3Zpa292QGNocm9taXVtLm9yZyJdLCJnZXJyaXQiOnsidXJsIjo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ds"
- "--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