40e8c91295
* configuration for new GCP project * fixed typo * fixed image names * set temporary urls during migration phase * updated config after benchmarks
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
# Copyright 2019 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: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: jenkins-staging
|
|
namespace: jenkins
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: master-staging
|
|
spec:
|
|
hostname: jenkins-master-staging
|
|
containers:
|
|
- name: master-staging
|
|
image: gcr.io/llvm-windows-development/jenkins-master
|
|
ports:
|
|
- containerPort: 8080
|
|
- containerPort: 50000
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /login
|
|
port: 8080
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
successThreshold: 2
|
|
failureThreshold: 5
|
|
env:
|
|
- name: JAVA_OPTS
|
|
value: '-Xmx1400m'
|
|
volumeMounts:
|
|
- mountPath: /var/jenkins_home
|
|
name: jenkins-home-staging
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 1500Mi
|
|
requests:
|
|
cpu: 500m
|
|
memory: 1500Mi
|
|
volumes:
|
|
- name: jenkins-home-staging
|
|
gcePersistentDisk:
|
|
pdName: jenkins-home-staging
|
|
fsType: ext4
|
|
nodeSelector:
|
|
cloud.google.com/gke-nodepool: default-pool
|
|
---
|