blob: d8dc0ee5539047194a4ce4abac7f19706cc57093 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: task-scheduler-fe
name: task-scheduler-fe
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
skia.org.domain: task-scheduler.skia.org
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: task-scheduler-fe
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: task-scheduler-fe
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: task-scheduler-fe
appgroup: task-scheduler
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: task-scheduler-fe
image: gcr.io/skia-public/task-scheduler-fe:2019-11-06T20_19_04Z-borenet-4b01811-clean
command: ["task-scheduler-fe"]
args:
- "--bigtable_project=skia-public"
- "--bigtable_instance=production"
- "--host=task-scheduler.skia.org"
- "--firestore_instance=production"
- "--logtostderr"
- "--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"
- "--resources_dir=/usr/local/share/task-scheduler/"
- "--swarming_server=chromium-swarm.appspot.com"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- 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:
requests:
memory: "100Mi"
cpu: 2
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 3
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