68 lines
2 KiB
YAML
68 lines
2 KiB
YAML
# 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
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: buildbot-windows
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: buildbot-windows
|
|
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
|
|
value: lab.llvm.org:9990
|
|
# 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
|