| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: gold-lottie-ingestion-bt |
| spec: |
| ports: |
| - name: http |
| port: 9091 |
| - name: metrics |
| port: 20000 |
| selector: |
| app: gold-lottie-ingestion-bt |
| type: NodePort |
| --- |
| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| name: gold-lottie-ingestion-bt |
| spec: |
| replicas: 1 # Start with one so you don't make duplicate GCS Pubsub subscriptions |
| selector: |
| matchLabels: |
| app: gold-lottie-ingestion-bt |
| strategy: |
| type: RollingUpdate |
| template: |
| metadata: |
| labels: |
| app: gold-lottie-ingestion-bt # Pod template's label selector |
| appgroup: gold-lottie |
| annotations: |
| prometheus.io.scrape: "true" |
| prometheus.io.port: "20000" |
| spec: |
| automountServiceAccountToken: false |
| securityContext: |
| runAsUser: 2000 # aka skia |
| fsGroup: 2000 # aka skia |
| containers: |
| - name: gold-lottie-ingestion-bt |
| image: gcr.io/skia-public/gold-ingestion:2019-10-01T17_55_02Z-kjlubick-8f979f3-clean |
| args: |
| - "--bt_instance=production" |
| - "--bt_project_id=skia-public" |
| - "--config_filename=/etc/gold-ingestion/gold-lottie-ingestion-config-bt.json5" |
| - "--fs_namespace=lottie" |
| - "--fs_project_id=skia-firestore" |
| - "--git_bt_table=git-repos2" |
| - "--http_port=:9091" |
| - "--logtostderr" |
| - "--prom_port=:20000" |
| - "--pubsub_project_id=skia-public" |
| ports: |
| - containerPort: 9091 |
| name: http-health |
| volumeMounts: |
| - name: gold-lottie-ingestion-config-volume |
| mountPath: /etc/gold-ingestion |
| - name: gold-service-account-secrets |
| mountPath: /var/secrets/google |
| env: |
| - name: GOOGLE_APPLICATION_CREDENTIALS |
| value: /var/secrets/google/service-account.json |
| resources: |
| requests: |
| memory: "12Gi" |
| cpu: 6 |
| readinessProbe: |
| httpGet: |
| path: /healthz |
| port: 9091 |
| initialDelaySeconds: 30 |
| periodSeconds: 10 |
| volumes: |
| - name: gold-lottie-ingestion-config-volume |
| configMap: |
| defaultMode: 420 |
| name: gold-lottie-ingestion-config-bt |
| - name: gold-service-account-secrets |
| secret: |
| secretName: gold-service-account-secrets |