1
0
Fork 0
llvm-premerge-checks/kubernetes/buildbot/windows.yaml

69 lines
2 KiB
YAML
Raw Normal View History

2023-09-07 16:34:40 +02:00
# Copyright 2022 Google LLC
#
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apps/v1
kind: Deployment
metadata:
name: buildbot-windows
2023-09-07 16:34:40 +02:00
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: buildbot-windows
2023-09-07 16:34:40 +02:00
template:
metadata:
labels:
app: buildbot-windows
2023-09-07 16:34:40 +02:00
spec:
containers:
- name: runner
image: gcr.io/llvm-premerge-checks/buildbot-windows:latest
resources:
limits:
cpu: 31
memory: 110Gi
requests:
cpu: 31
memory: 110Gi
volumeMounts:
- name: workdir
mountPath: "C:\\ws"
env:
- name: WORKDIR
value: "c:/ws" # matching workdir
- name: BUILDBOT_PASSWORD
valueFrom:
secretKeyRef:
name: buildbot-premerge-windows-1
key: password
- name: BUILDBOT_NAME
value: premerge-windows-1
- name: BUILDBOT_ADDRESS
2023-11-10 15:41:46 +01:00
value: lab.llvm.org:9990
2023-09-07 16:34:40 +02:00
# Empty dir volume can use all disk space from VM. By default container
# disk will only be 20Gb and run out of space.
volumes:
- name: workdir
emptyDir: {}
nodeSelector:
cloud.google.com/gke-nodepool: windows-32
tolerations:
- key: "node.kubernetes.io/os"
operator: "Equal"
value: "windows"
effect: "NoSchedule"
terminationGracePeriodSeconds: 30