-
Notifications
You must be signed in to change notification settings - Fork 12
/
dc-jenkins.json
157 lines (157 loc) · 5.79 KB
/
dc-jenkins.json
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"annotations": {
"template.alpha.openshift.io/wait-for-ready": "true"
},
"creationTimestamp": "2018-02-22T15:16:54Z",
"generation": 4,
"labels": {
"template": "jenkins-ephemeral-template"
},
"name": "jenkins",
"namespace": "demo",
"resourceVersion": "7393531",
"selfLink": "/oapi/v1/namespaces/demo/deploymentconfigs/jenkins",
"uid": "6a971ca9-17e3-11e8-8ae2-000d3a34b1a3"
},
"spec": {
"replicas": 1,
"selector": {
"name": "jenkins"
},
"strategy": {
"activeDeadlineSeconds": 21600,
"recreateParams": {
"timeoutSeconds": 600
},
"resources": {},
"type": "Recreate"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"name": "jenkins"
}
},
"spec": {
"containers": [
{
"env": [
{
"name": "OPENSHIFT_ENABLE_OAUTH",
"value": "true"
},
{
"name": "OPENSHIFT_ENABLE_REDIRECT_PROMPT",
"value": "true"
},
{
"name": "KUBERNETES_MASTER",
"value": "https://kubernetes.default:443"
},
{
"name": "KUBERNETES_TRUST_CERTIFICATES",
"value": "true"
},
{
"name": "JENKINS_SERVICE_NAME",
"value": "jenkins"
},
{
"name": "JNLP_SERVICE_NAME",
"value": "jenkins-jnlp"
},
{
"name": "INSTALL_PLUGINS",
"value": "openshift-client:1.0.1"
}
],
"image": "registry.access.redhat.com/openshift3/jenkins-2-rhel7@sha256:9d445e17ab5ad3ae7d7b8dcc37d1cff7c2d5220b0772ff2c1062a23e2446ec17",
"imagePullPolicy": "Always",
"livenessProbe": {
"failureThreshold": 30,
"httpGet": {
"path": "/login",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 420,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 3
},
"name": "jenkins",
"readinessProbe": {
"failureThreshold": 3,
"httpGet": {
"path": "/login",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 3,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 3
},
"resources": {
"limits": {
"memory": "512Mi"
}
},
"securityContext": {
"capabilities": {},
"privileged": false
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"volumeMounts": [
{
"mountPath": "/var/lib/jenkins",
"name": "jenkins-data"
}
]
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {},
"serviceAccount": "jenkins",
"serviceAccountName": "jenkins",
"terminationGracePeriodSeconds": 30,
"volumes": [
{
"emptyDir": {},
"name": "jenkins-data"
}
]
}
},
"test": false,
"triggers": [
{
"imageChangeParams": {
"automatic": true,
"containerNames": [
"jenkins"
],
"from": {
"kind": "ImageStreamTag",
"name": "jenkins:latest",
"namespace": "openshift"
},
"lastTriggeredImage": "registry.access.redhat.com/openshift3/jenkins-2-rhel7@sha256:9d445e17ab5ad3ae7d7b8dcc37d1cff7c2d5220b0772ff2c1062a23e2446ec17"
},
"type": "ImageChange"
},
{
"type": "ConfigChange"
}
]
},
"status": {
}
}