blob: f48990b517d6d2f3722b124cad4ba2334ff72be0 [file]
# Copyright 2024 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: watchflakes-deployment
spec:
replicas: 1 # more than 1 might cause duplicate GitHub comments
selector:
matchLabels:
app: watchflakes
template:
metadata:
labels:
app: watchflakes
spec:
serviceAccountName: watchflakes
containers:
- name: watchflakes
image: gcr.io/symbolic-datum-552/watchflakes:latest
imagePullPolicy: Always
command: ["/watchflakes", "-use-luci-authn", "-use-secret-manager", "-repeat=1h", "-post"]
env:
- name: GOMEMLIMIT # 2025-12-19 is the last time it was tested that it helps to set GOMEMLIMIT explicitly in this context
value: "3600MiB" # 90% of requested memory
resources:
requests:
cpu: "1"
memory: "4Gi" # if changing this, update GOMEMLIMIT above
limits:
cpu: "2"
memory: "8Gi"
---
apiVersion: v1
kind: ServiceAccount
metadata:
namespace: prod
name: watchflakes
annotations:
iam.gke.io/gcp-service-account: watchflakes@symbolic-datum-552.iam.gserviceaccount.com