| apiVersion: extensions/v1beta1 |
| kind: Deployment |
| metadata: |
| labels: |
| app: perf-ingest-ct-prod |
| name: perf-ingest-ct-prod |
| spec: |
| progressDeadlineSeconds: 600 |
| replicas: 2 |
| selector: |
| matchLabels: |
| app: perf-ingest-ct-prod |
| strategy: |
| type: RollingUpdate |
| template: |
| metadata: |
| annotations: |
| prometheus.io.port: "20000" |
| prometheus.io.scrape: "true" |
| labels: |
| app: perf-ingest-ct-prod |
| appgroup: perf |
| spec: |
| automountServiceAccountToken: false |
| containers: |
| - args: |
| - --logtostderr |
| - --prom_port=:20000 |
| - --port=:8000 |
| - --config_name=ct-prod |
| env: |
| - name: GOOGLE_APPLICATION_CREDENTIALS |
| value: /var/secrets/google/key.json |
| image: gcr.io/skia-public/perf-ingest:2019-09-19T21_02_58Z-jcgregorio-2cad5d3-clean |
| imagePullPolicy: IfNotPresent |
| name: perf-ingest-ct-prod |
| ports: |
| - containerPort: 20000 |
| protocol: TCP |
| - containerPort: 8000 |
| protocol: TCP |
| readinessProbe: |
| failureThreshold: 3 |
| httpGet: |
| path: /ready |
| port: 8000 |
| scheme: HTTP |
| initialDelaySeconds: 1 |
| periodSeconds: 3 |
| successThreshold: 1 |
| timeoutSeconds: 1 |
| resources: |
| requests: |
| cpu: "0.2" |
| memory: 1Gi |
| volumeMounts: |
| - mountPath: /var/secrets/google |
| name: skia-perf-ingest-sa |
| restartPolicy: Always |
| securityContext: |
| fsGroup: 2000 |
| runAsUser: 2000 |
| terminationGracePeriodSeconds: 30 |
| volumes: |
| - name: skia-perf-ingest-sa |
| secret: |
| secretName: perf-ingest |