This repository has been archived by the owner on Oct 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
openshift-deployment.yml
100 lines (100 loc) · 3.09 KB
/
openshift-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
apiVersion: "extensions/v1beta1"
kind: "Deployment"
metadata:
name: "jenkins"
annotations:
fabric8.io/target-platform: "openshift"
configmap.fabric8.io/update-on-change: "jenkins"
spec:
replicas: 1
strategy:
type: Recreate
recreateParams:
timeoutSeconds: 7200
template:
spec:
containers:
- image: "fabric8/jenkins-openshift:${jenkins-openshift.version}"
imagePullPolicy: "IfNotPresent"
name: "jenkins"
readinessProbe:
timeoutSeconds: 10
initialDelaySeconds: 10
httpGet:
path: "/login"
port: 8080
livenessProbe:
timeoutSeconds: 10
initialDelaySeconds: 420
failureThreshold: 30
httpGet:
path: "/login"
port: 8080
ports:
- containerPort: 50000
name: "slave"
- containerPort: 8080
name: "http"
env:
- name: PROJECT_NAMESPACE
value: "${PROJECT_NAMESPACE}"
- name: "KUBERNETES_NAMESPACE"
valueFrom:
fieldRef:
fieldPath: "metadata.namespace"
- name: GIT_COMMITTER_EMAIL
value: fabric8@googlegroups.com
- name: GIT_COMMITTER_NAME
value: fabric8
- name: OPENSHIFT_ENABLE_OAUTH
value: "true"
- name: OPENSHIFT_ENABLE_REDIRECT_PROMPT
value: "true"
- name: KUBERNETES_TRUST_CERTIFICATES
value: "true"
- name: KUBERNETES_MASTER
value: "https://kubernetes.default:443"
- name: JAVA_GC_OPTS
value: "-XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90"
- name: JAVA_OPTS
value: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true"
- name: OPENSHIFT_JENKINS_JVM_ARCH
value: "i686"
- name: CONTAINER_INITIAL_PERCENT
value: "0.07"
- name: CONTAINTER_INITIAL_PERCENT
value: "something-non-empty"
- name: JENKINS_OPTS
value: "-Dgroovy.use.classvalue=true"
- name: JAVA_HOME
value: "/etc/alternatives/java_sdk"
- name: MAVEN_OPTS
value: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
- name: RECOMMENDER_API_TOKEN
valueFrom:
secretKeyRef:
name: jenkins-recommender-api-token
key: token
- name: JENKINS_ROOT_URL
value: "${JENKINS_ROOT_URL}"
resources:
limits:
memory: 512Mi
cpu: 2
requests:
cpu: "0"
volumeMounts:
- mountPath: /var/lib/jenkins
name: jenkins-home
readOnly: false
- name: jenkins-config
mountPath: /opt/openshift/configuration/
serviceAccountName: "jenkins"
volumes:
- name: jenkins-home
persistentVolumeClaim:
claimName: jenkins-home
- name: jenkins-config
configMap:
name: jenkins