golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/gerritbot/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: gerritbot-deployment 10 spec: 11 replicas: 1 12 selector: 13 matchLabels: 14 app: gerritbot 15 template: 16 metadata: 17 labels: 18 app: gerritbot 19 annotations: 20 container.seccomp.security.alpha.kubernetes.io/gerritbot: docker/default 21 container.apparmor.security.beta.kubernetes.io/gerritbot: runtime/default 22 spec: 23 serviceAccountName: gerritbot 24 containers: 25 - name: gerritbot 26 image: gcr.io/symbolic-datum-552/gerritbot:latest 27 imagePullPolicy: Always 28 command: ["/sbin/tini", "--", "/gerritbot", "-listen-https-selfsigned=:444", "-gitcookies-file=/gitcookies"] 29 ports: 30 - containerPort: 443 31 resources: 32 requests: 33 cpu: "1" 34 memory: "12Gi" 35 ephemeral-storage: "16Gi" 36 limits: 37 memory: "16Gi" 38 ephemeral-storage: "32Gi" 39 --- 40 apiVersion: v1 41 kind: Service 42 metadata: 43 namespace: prod 44 name: gerritbot-internal 45 annotations: 46 cloud.google.com/neg: '{"ingress": false}' 47 cloud.google.com/app-protocols: '{"https":"HTTP2"}' 48 spec: 49 ports: 50 - port: 444 51 targetPort: 444 52 name: https 53 selector: 54 app: gerritbot 55 type: NodePort