golang.org/x/build@v0.0.0-20240506185731-218518f32b70/perf/deployment-prod.yaml (about) 1 # Copyright 2022 The Go Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style 3 # license that can be found in the LICENSE file. 4 5 apiVersion: apps/v1 6 kind: Deployment 7 metadata: 8 namespace: prod 9 name: perf-deployment 10 spec: 11 replicas: 2 12 selector: 13 matchLabels: 14 app: perf 15 template: 16 metadata: 17 labels: 18 app: perf 19 spec: 20 serviceAccountName: perf-prod 21 containers: 22 - name: perf 23 image: gcr.io/symbolic-datum-552/perf:latest 24 imagePullPolicy: Always 25 command: [ 26 "/perf", 27 "-listen-https-selfsigned=:443", 28 "-perfdata=https://perfdata.golang.org", 29 "-influx-host=https://influx.golang.org", 30 "-auth-cron-email=perf-prod@symbolic-datum-552.iam.gserviceaccount.com", 31 ] 32 readinessProbe: 33 httpGet: 34 path: /healthz 35 port: 443 36 scheme: HTTPS 37 ports: 38 - containerPort: 443 39 resources: 40 requests: 41 cpu: "4" 42 memory: "4Gi" 43 limits: 44 memory: "8Gi" 45 --- 46 apiVersion: v1 47 kind: ServiceAccount 48 metadata: 49 namespace: prod 50 name: perf-prod 51 annotations: 52 iam.gke.io/gcp-service-account: perf-prod@symbolic-datum-552.iam.gserviceaccount.com 53 --- 54 apiVersion: v1 55 kind: Service 56 metadata: 57 namespace: prod 58 name: perf-internal 59 annotations: 60 cloud.google.com/neg: '{"ingress": false}' 61 cloud.google.com/app-protocols: '{"https":"HTTP2"}' 62 spec: 63 ports: 64 - port: 443 65 targetPort: 443 66 name: https 67 selector: 68 app: perf 69 type: NodePort