blob: a4542e962ae3b8a0a295ad25fb5798b11ac3bec2 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: task-driver-server
name: task-driver-server
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
skia.org.domain: task-driver.skia.org
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: task-driver-server
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: task-driver-server
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: task-driver-server
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: task-driver-server
image: gcr.io/skia-public/task-driver-server:2019-07-10T12_05_31Z-borenet-9662f2e-clean
args:
- "--bigtable_instance=staging"
- "--bigtable_project=skia-public"
- "--logtostderr"
- "--host=task-driver.skia.org"
- "--port=:8000"
- "--prom_port=:20000"
- "--resources_dir=/usr/local/share/task-driver-server"
- "--project_id=skia-swarming-bots"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: task-driver-server-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: "10Mi"
cpu: "10m"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 10
periodSeconds: 3
failureThreshold: 10
volumes:
- name: task-driver-server-sa
secret:
secretName: task-driver
- name: skia-public-auth
secret:
secretName: skia-public-auth
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets