blob: 1f38bc92dfb7a30021ca555190085471404dc6f0 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-waterfall-emscripten-releases
spec:
serviceName: "autoroll-be-waterfall-emscripten-releases"
replicas: 1
selector:
matchLabels:
app: autoroll-be-waterfall-emscripten-releases
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-waterfall-emscripten-releases # 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-waterfall-emscripten-releases
image: gcr.io/skia-public/autoroll-be:2019-10-01T16_39_30Z-borenet-ad41711-clean
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJ3YXRlcmZhbGwiLCJjb250YWN0cyI6WyJkc2NodWZmQGdvb2dsZS5jb20iXSwiaXNJbnRlcm5hbCI6ZmFsc2UsInBhcmVudE5hbWUiOiJlbXNjcmlwdGVuLXJlbGVhc2VzIiwicGFyZW50V2F0ZXJmYWxsIjoiaHR0cHM6Ly9idWlsZC5jaHJvbWl1bS5vcmciLCJyb2xsZXJOYW1lIjoid2F0ZXJmYWxsLWVtc2NyaXB0ZW4tcmVsZWFzZXMiLCJzZXJ2aWNlQWNjb3VudCI6ImNocm9taXVtLWF1dG9yb2xsQHNraWEtcHVibGljLmlhbS5nc2VydmljZWFjY291bnQuY29tIiwic2hlcmlmZiI6WyJ3YXNtLXdhdGVyZmFsbEBncm90YXRpb25zLmFwcHNwb3RtYWlsLmNvbSJdLCJnZXJyaXQiOnsidXJsIjoiaHR0cHM6Ly9jaHJvbWl1bS1yZXZpZXcuZ29vZ2xlc291cmNlLmNvbSIsInByb2plY3QiOiJlbXNjcmlwdGVuLXJlbGVhc2VzIiwiY29uZmlnIjoiY2hyb21pdW0ifSwiZnJlZVR5cGVSZXBvTWFuYWdlciI6bnVsbCwibm9DaGVja291dERFUFNSZXBvTWFuYWdlciI6eyJjaGlsZEJyYW5jaCI6Im1hc3RlciIsImNoaWxkUGF0aCI6ImVtc2NyaXB0ZW4tcmVsZWFzZXMvd2F0ZXJmYWxsIiwicGFyZW50QnJhbmNoIjoibWFzdGVyIiwiY2hpbGRSZXZMaW5rVG1wbCI6Imh0dHBzOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9leHRlcm5hbC9naXRodWIuY29tL1dlYkFzc2VtYmx5L3dhdGVyZmFsbC5naXQvKy8lcyIsImNvbW1pdE1zZ1RtcGwiOiIiLCJwYXJlbnRSZXBvIjoiaHR0cHM6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2Vtc2NyaXB0ZW4tcmVsZWFzZXMuZ2l0IiwiY2hpbGRSZXBvIjoiaHR0cHM6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2V4dGVybmFsL2dpdGh1Yi5jb20vV2ViQXNzZW1ibHkvd2F0ZXJmYWxsLmdpdCIsImluY2x1ZGVCdWdzIjpmYWxzZSwiaW5jbHVkZUxvZyI6dHJ1ZSwidHJhbnNpdGl2ZURlcHMiOm51bGx9LCJrdWJlcm5ldGVzIjp7ImNwdSI6IjEiLCJtZW1vcnkiOiIyR2kiLCJkaXNrIjoiIn0sIm1heFJvbGxGcmVxdWVuY3kiOiIwbSJ9"
- "--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-chromium-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-chromium-autoroll-sa
secret:
secretName: chromium-autoroll
- name: autoroll-email-creds
secret:
secretName: autoroll-email-creds
- name: notifier-chat-config
secret:
secretName: notifier-chat-config