blob: 0794a7306e6a12af30252bebabfc0ef5eb8b26d5 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-spirv-tools-angle-autoroll
spec:
serviceName: "autoroll-be-spirv-tools-angle-autoroll"
replicas: 1
selector:
matchLabels:
app: autoroll-be-spirv-tools-angle-autoroll
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-spirv-tools-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-spirv-tools-angle-autoroll
image: gcr.io/skia-public/autoroll-be:2019-10-01T16_39_30Z-borenet-ad41711-clean
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJTUElSVi1Ub29scyIsImNvbnRhY3RzIjpbImdlb2ZmbGFuZ0BjaHJvbWl1bS5vcmciLCJqbWFkaWxsQGNocm9taXVtLm9yZyIsInN5b3Vzc2VmaUBjaHJvbWl1bS5vcmciLCJ5bm92aWtvdkBjaHJvbWl1bS5vcmciXSwiaXNJbnRlcm5hbCI6ZmFsc2UsInBhcmVudE5hbWUiOiJBTkdMRSIsInBhcmVudFdhdGVyZmFsbCI6Imh0dHBzOi8vY2kuY2hyb21pdW0ub3JnL3AvYW5nbGUvZy9jaS9jb25zb2xlIiwicm9sbGVyTmFtZSI6InNwaXJ2LXRvb2xzLWFuZ2xlLWF1dG9yb2xsIiwic2VydmljZUFjY291bnQiOiJhbmdsZS1hdXRvcm9sbEBza2lhLXB1YmxpYy5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInNoZXJpZmYiOlsiaHR0cHM6Ly9yb3RhLW5nLmFwcHNwb3QuY29tL2xlZ2FjeS9zaGVyaWZmX2FuZ2xlLmpzb24iXSwic2hlcmlmZkJhY2t1cCI6WyJ5bm92aWtvdkBjaHJvbWl1bS5vcmciXSwiZ2Vycml0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ds=/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