blob: d996a777a8450c477aeef8261c5c71bb0e960cb5 [file] [log] [blame]
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: task-scheduler-be
labels:
app: task-scheduler-be
spec:
serviceName: "task-scheduler-be"
replicas: 1
selector:
matchLabels:
app: task-scheduler-be
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: task-scheduler-be
appgroup: task-scheduler
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
securityContext:
runAsUser: 2000 # aka skia
#fsGroup: 2000 # aka skia, only needed on first pod startup.
automountServiceAccountToken: false
containers:
- name: task-scheduler-be
image: gcr.io/skia-public/task-scheduler-be:2019-12-06T12_36_51Z-borenet-d9e9364-clean
command: ["task-scheduler-be"]
args:
- "--bigtable_project=skia-public"
- "--bigtable_instance=production"
- "--host=task-scheduler.skia.org"
- "--firestore_instance=production"
- "--isolate_server=https://isolateserver.appspot.com"
- "--logtostderr"
- "--pool=Skia"
- "--pool=SkiaCT"
- "--pubsub_topic=swarming-tasks"
- "--pubsub_subscriber=task-scheduler"
- "--recipes_cfg=/usr/local/share/task-scheduler/recipes.cfg"
- "--repo=https://skia.googlesource.com/skia.git"
- "--repo=https://skia.googlesource.com/buildbot.git"
- "--repo=https://skia.googlesource.com/lottie-ci.git"
- "--repo=https://skia.googlesource.com/skcms.git"
- "--swarming_server=chromium-swarm.appspot.com"
- "--tryjob_bucket=skia.primary"
- "--workdir=/mnt/task-scheduler"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: task-scheduler-storage
mountPath: /mnt/task-scheduler
- name: skia-task-scheduler-sa
mountPath: /var/secrets/google
- name: skia-public-auth
mountPath: /var/secrets/skia-public-auth
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
limits:
memory: "20Gi"
cpu: 15
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 3
volumes:
- name: skia-task-scheduler-sa
secret:
secretName: task-scheduler
- name: skia-public-auth
secret:
secretName: skia-public-auth
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets
volumeClaimTemplates:
- metadata:
name: task-scheduler-storage
spec:
storageClassName: ssd-disk
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 200Gi