зеркало из https://github.com/golang/build.git
79 строки
1.8 KiB
YAML
79 строки
1.8 KiB
YAML
# Copyright 2022 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: prod
|
|
name: perf-deployment
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: perf
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: perf
|
|
spec:
|
|
serviceAccountName: perf-prod
|
|
containers:
|
|
- name: perf
|
|
image: gcr.io/symbolic-datum-552/perf:latest
|
|
imagePullPolicy: Always
|
|
command: [
|
|
"/perf",
|
|
"-listen-https-selfsigned=:443",
|
|
"-perfdata=https://perfdata.golang.org",
|
|
"-influx-host=https://influx.golang.org",
|
|
"-auth-cron-email=perf-prod@symbolic-datum-552.iam.gserviceaccount.com",
|
|
]
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 443
|
|
scheme: HTTPS
|
|
ports:
|
|
- containerPort: 443
|
|
resources:
|
|
requests:
|
|
cpu: "4"
|
|
memory: "4Gi"
|
|
limits:
|
|
memory: "8Gi"
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
namespace: prod
|
|
name: perf-prod
|
|
annotations:
|
|
iam.gke.io/gcp-service-account: perf-prod@symbolic-datum-552.iam.gserviceaccount.com
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
namespace: prod
|
|
name: perf-internal
|
|
annotations:
|
|
cloud.google.com/backend-config: '{"default": "build-ingress-perf-backend"}'
|
|
cloud.google.com/neg: '{"ingress": false}'
|
|
cloud.google.com/app-protocols: '{"https":"HTTP2"}'
|
|
spec:
|
|
ports:
|
|
- port: 443
|
|
targetPort: 443
|
|
name: https
|
|
selector:
|
|
app: perf
|
|
type: NodePort
|
|
---
|
|
apiVersion: cloud.google.com/v1
|
|
kind: BackendConfig
|
|
metadata:
|
|
namespace: prod
|
|
name: build-ingress-perf-backend
|
|
spec:
|
|
timeoutSec: 3600 # For long calls to /cron/syncinflux.
|