-
Notifications
You must be signed in to change notification settings - Fork 25
/
jenkins-template.yml
87 lines (87 loc) · 1.81 KB
/
jenkins-template.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
apiVersion: "v1"
kind: "Template"
labels: {}
metadata:
labels: {}
name: "jenkins"
objects:
- apiVersion: v1
kind: ServiceAccount
metadata:
name: jenkins
- apiVersion: "v1"
kind: "Service"
metadata:
annotations: {}
labels:
project: "jenkins"
name: "jenkins"
spec:
deprecatedPublicIPs: []
externalIPs: []
ports:
- name: "http"
port: 80
protocol: "TCP"
targetPort: 8080
selector:
project: "jenkins"
type: "LoadBalancer"
- apiVersion: "v1"
kind: "Service"
metadata:
annotations: {}
labels:
project: "jenkins"
name: "jenkins-jnlp"
spec:
deprecatedPublicIPs: []
externalIPs: []
ports:
- name: "agent"
port: 50000
protocol: "TCP"
targetPort: 50000
selector:
project: "jenkins"
type: "LoadBalancer"
- apiVersion: "v1"
kind: "ReplicationController"
metadata:
labels:
project: "jenkins"
name: "jenkins"
spec:
replicas: 1
selector:
project: "jenkins"
template:
metadata:
labels:
project: "jenkins"
spec:
containers:
- args: []
command: []
env:
- name: "JENKINS_PASSWORD"
value: "${JENKINS_PASSWORD}"
- name: "KUBERNETES_NAMESPACE"
valueFrom:
fieldRef:
fieldPath: "metadata.namespace"
image: "fabric8/jenkins-openshift-pipeline:latest"
name: "jenkins"
imagePullPolicy: IfNotPresent
ports:
- containerPort: 50000
name: "agent"
- containerPort: 8080
name: "http"
imagePullSecrets: []
nodeSelector: {}
serviceAccountName: "jenkins"
parameters:
- description: "Jenkins admin password"
name: "JENKINS_PASSWORD"
value: "admin"