blob: cc86590113ed4a77e12e37aab9017259109d2fd7 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: datahopper-staging
labels:
app: datahopper-staging
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
spec:
selector:
app: datahopper-staging
type: NodePort
ports:
- port: 8000
name: http
- port: 20000
name: metrics
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: datahopper-staging
labels:
app: datahopper-staging
spec:
replicas: 1
selector:
matchLabels:
app: datahopper-staging
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: datahopper-staging
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
automountServiceAccountToken: false
containers:
- name: datahopper-staging
image: gcr.io/skia-public/datahopper:2019-10-03T16_52_39Z-borenet-4bff211-clean
args:
- "--bigtable_instance=staging"
- "--bigtable_project=skia-public"
- "--firestore_instance=staging"
- "--logtostderr"
- "--port=:8000"
- "--prom_port=:20000"
- "--repo=https://skia.googlesource.com/skiabot-test.git"
- "--swarming_server=chromium-swarm-dev.appspot.com"
- "--swarming_pool=Skia"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: skia-datahopper-sa
mountPath: /var/secrets/google
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
limits:
memory: "32Gi"
cpu: 16
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 3
volumes:
- name: skia-datahopper-sa
secret:
secretName: datahopper