golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/gopherbot/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: gopherbot-deployment 10 spec: 11 replicas: 1 # more than 1 might cause duplicate GitHub comments 12 selector: 13 matchLabels: 14 app: gopherbot 15 template: 16 metadata: 17 labels: 18 app: gopherbot 19 annotations: 20 container.seccomp.security.alpha.kubernetes.io/gopherbot: docker/default 21 container.apparmor.security.beta.kubernetes.io/gopherbot: runtime/default 22 spec: 23 serviceAccountName: gopherbot 24 volumes: 25 - name: cache-volume 26 emptyDir: {} 27 containers: 28 - name: gopherbot 29 image: gcr.io/symbolic-datum-552/gopherbot:latest 30 imagePullPolicy: Always 31 env: 32 - name: XDG_CACHE_HOME 33 value: "/cache" 34 command: ["/gopherbot", "--daemon"] 35 volumeMounts: 36 - mountPath: /cache 37 name: cache-volume 38 resources: 39 requests: 40 cpu: "1" 41 memory: "12Gi" 42 ephemeral-storage: "16Gi" 43 limits: 44 memory: "16Gi" 45 ephemeral-storage: "32Gi"