blob: dc6522c852b943642099fdd72b3edc9d2ef4080c [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: autoroll-be-cros-orderfile-chromium-beta
spec:
serviceName: "autoroll-be-cros-orderfile-chromium-beta"
replicas: 1
selector:
matchLabels:
app: autoroll-be-cros-orderfile-chromium-beta
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-be-cros-orderfile-chromium-beta # 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-cros-orderfile-chromium-beta
image: gcr.io/skia-public/autoroll-be:2019-12-11T16_14_18Z-borenet-2789512-clean
command: ["/usr/local/bin/autoroll-be"]
args:
- "--logtostderr"
- "--config=eyJjaGlsZE5hbWUiOiJDaHJvbWVPUyBPcmRlcmZpbGVzIiwiY29udGFjdHMiOlsidGN3YW5nQGdvb2dsZS5jb20iXSwiaXNJbnRlcm5hbCI6ZmFsc2UsInBhcmVudE5hbWUiOiJDaHJvbWl1bSBCZXRhIEJyYW5jaCIsInBhcmVudFdhdGVyZmFsbCI6Imh0dHBzOi8vYnVpbGQuY2hyb21pdW0ub3JnIiwicm9sbGVyTmFtZSI6ImNyb3Mtb3JkZXJmaWxlLWNocm9taXVtLWJldGEiLCJzZXJ2aWNlQWNjb3VudCI6ImNocm9taXVtLXJlbGVhc2UtYXV0b3JvbGxAc2tpYS1wdWJsaWMuZ29vZ2xlLmNvbS5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInNoZXJpZmYiOlsiYy1jb21waWxlci1jaHJvbWVAZ29vZ2xlLmNvbSJdLCJnZXJyaXQiOnsidXJsIjoiaHR0cHM6Ly9jaHJvbWl1bS1yZXZpZXcuZ29vZ2xlc291cmNlLmNvbSIsInByb2plY3QiOiJjaHJvbWl1bS9zcmMiLCJjb25maWciOiJjaHJvbWl1bS1uby1jcSJ9L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U6XG5odHRwczovL3NraWEuZ29vZ2xlc291cmNlLmNvbS9idWlsZGJvdC8rL21hc3Rlci9hdXRvcm9sbC9SRUFETUUubWRcblxuQ1FfRVhUUkFfVFJZQk9UUz17ey5DcUV4dHJhVHJ5Ym90c319XG5UQlI9e3tzdHJpbmdzSm9pbiAuUmV2aWV3ZXJzIFwiLFwifX1cbiIsIkdDU0J1Y2tldCI6ImNocm9tZW9zLXByZWJ1aWx0IiwiR0NTUGF0aCI6ImFmZG8tam9iL29yZGVyZmlsZXMvdmV0dGVkIiwiVmVyc2lvbkZpbGUiOiJjaHJvbWVvcy9wcm9maWxlcy9vcmRlcmZpbGUubmV3ZXN0LnR4dCIsIlNob3J0UmV2UmVnZXgiOiIoXFxkKyktKFxcZCspLihcXGQrKS0oXFxkKyktYmVuY2htYXJrLShcXGQrKS4oXFxkKykuKFxcZCspLjAtcihcXGQrKSIsIlZlcnNpb25SZWdleCI6Il5jaHJvbWVvcy1jaHJvbWUtb3JkZXJmaWxlLWZpZWxkLTc5LTM5NDUuKFxcZCspLShcXGQrKS1iZW5jaG1hcmstNzkuKFxcZCspLjM5NDUuKFxcZCspLXIoXFxkKykub3JkZXJmaWxlLnh6JCJ9LCJrdWJlcm5ldGVzIjp7ImNwdSI6IjEiLCJtZW1vcnkiOiIyR2kiLCJkaXNrIjoiIn0sIm1heFJvbGxGcmVxdWVuY3kiOiIwbSJ9"
- "--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-release-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-release-autoroll-sa
secret:
secretName: chromium-release-autoroll
- name: autoroll-email-creds
secret:
secretName: autoroll-email-creds
- name: notifier-chat-config
secret:
secretName: notifier-chat-config