blob: 5c844bc5809202cb68bbea82265fc0e6e10fa0e3 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-fuchsia-linux-sdk-flutter-engine
spec:
serviceName: "autoroll-be-fuchsia-linux-sdk-flutter-engine"
replicas: 1
selector:
matchLabels:
app: autoroll-be-fuchsia-linux-sdk-flutter-engine
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-fuchsia-linux-sdk-flutter-engine # 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-fuchsia-linux-sdk-flutter-engine
image: gcr.io/skia-public/autoroll-be:2019-10-01T16_39_30Z-borenet-ad41711-clean
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJGdWNoc2lhIExpbnV4IFNESyIsImNvbnRhY3RzIjpbImxpeXVxaWFuQGdvb2dsZS5jb20iLCJybWlzdHJ5QGdvb2dsZS5jb20iXSwiaXNJbnRlcm5hbCI6ZmFsc2UsInBhcmVudE5hbWUiOiJGbHV0dGVyIiwicGFyZW50V2F0ZXJmYWxsIjoiaHR0cHM6Ly9idWlsZC5jaHJvbWl1bS5vcmcvcC9jbGllbnQuZmx1dHRlci9jb25zb2xlIiwicm9sbGVyTmFtZSI6ImZ1Y2hzaWEtbGludXgtc2RrLWZsdXR0ZXItZW5naW5lIiwic2VydmljZUFjY291bnQiOiJmbHV0dGVyLWVuZ2luZS1hdXRvcm9sbEBza2lhLXB1YmxpYy5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInNoZXJpZmYiOlsiaHR0cHM6Ly9yb3RhLW5nLmFwcHNwb3QuY29tL2xlZ2FjeS9zaGVyaWZmX2ZsdXR0ZXJfZW5naW5lLmpzb24iXSwiZ2l0aHViIjp7InJlcG9Pd25lciI6ImZsdXR0ZXIiLCJyZXBvTmFtZSI6ImV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yJlbWFpbHMiOlsiJFNIRVJJRkYiXX19XX0="
- "--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-fuchsia-linux-sdk-flutter-engine-storage
mountPath: /data
- name: autoroll-be-flutter-engine-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/
- name: flutter-engine-github-token
mountPath: /var/secrets/github-token
- name: flutter-engine-ssh-key
mountPath: /var/secrets/ssh-key
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
- name: TMPDIR
value: /data/tmp
resources:
limits:
memory: "8Gi"
cpu: 1
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 600
periodSeconds: 60
failureThreshold: 10
volumes:
- name: autoroll-be-flutter-engine-autoroll-sa
secret:
secretName: flutter-engine-autoroll
- name: autoroll-email-creds
secret:
secretName: autoroll-email-creds
- name: notifier-chat-config
secret:
secretName: notifier-chat-config
- name: flutter-engine-github-token
secret:
secretName: flutter-engine-github-token
- name: flutter-engine-ssh-key
secret:
secretName: flutter-engine-ssh-key
volumeClaimTemplates:
- metadata:
name: autoroll-be-fuchsia-linux-sdk-flutter-engine-storage
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 50Gi