| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: datahopper |
| labels: |
| app: datahopper |
| annotations: |
| beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}' |
| spec: |
| selector: |
| app: datahopper |
| type: NodePort |
| ports: |
| - port: 8000 |
| name: http |
| - port: 20000 |
| name: metrics |
| --- |
| apiVersion: apps/v1beta1 |
| kind: Deployment |
| metadata: |
| name: datahopper |
| labels: |
| app: datahopper |
| spec: |
| replicas: 1 |
| selector: |
| matchLabels: |
| app: datahopper |
| strategy: |
| type: RollingUpdate |
| template: |
| metadata: |
| labels: |
| app: datahopper |
| annotations: |
| prometheus.io.scrape: "true" |
| prometheus.io.port: "20000" |
| spec: |
| securityContext: |
| runAsUser: 2000 # aka skia |
| fsGroup: 2000 # aka skia |
| automountServiceAccountToken: false |
| containers: |
| - name: datahopper |
| image: gcr.io/skia-public/datahopper:2019-10-10T14_40_14Z-benjaminwagner-0216535-clean |
| args: |
| - "--bigtable_instance=production" |
| - "--bigtable_project=skia-public" |
| - "--firestore_instance=production" |
| - "--logtostderr" |
| - "--port=:8000" |
| - "--prom_port=:20000" |
| - "--repo=https://skia.googlesource.com/buildbot.git" |
| - "--repo=https://skia.googlesource.com/lottie-ci.git" |
| - "--repo=https://skia.googlesource.com/skcms.git" |
| - "--repo=https://skia.googlesource.com/skia.git" |
| - "--swarming_server=chromium-swarm.appspot.com" |
| - "--swarming_pool=Skia" |
| - "--swarming_pool=SkiaCT" |
| 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 |