-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment-config.yaml
87 lines (87 loc) · 2.89 KB
/
deployment-config.yaml
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
kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
metadata:
name: ubuntu-jenkins-slave
namespace: jenkins2
labels:
app: ubuntu-jenkins-slave
app.kubernetes.io/component: ubuntu-jenkins-slave
app.kubernetes.io/instance: ubuntu-jenkins-slave
app.kubernetes.io/name: ubuntu-jenkins-slave
app.kubernetes.io/part-of: ubuntu-jenkins-slave-app
app.openshift.io/runtime: ubuntu-jenkins-slave
app.openshift.io/runtime-namespace: jenkins2
app.openshift.io/runtime-version: latest
spec:
strategy:
type: Recreate
recreateParams:
timeoutSeconds: 600
resources: {}
activeDeadlineSeconds: 21600
triggers:
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- ubuntu-jenkins-slave
from:
kind: ImageStreamTag
namespace: jenkins2
name: 'ubuntu-jenkins-slave:latest'
lastTriggeredImage: >-
image-registry.openshift-image-registry.svc:5000/jenkins2/ubuntu-jenkins-slave@sha256:91f1b4faeb1d2c045bc052c015c4384c33be50605bfe6a85bc90d69534a20f7b
- type: ConfigChange
replicas: 1
revisionHistoryLimit: 10
test: false
selector:
app: ubuntu-jenkins-slave
deploymentconfig: ubuntu-jenkins-slave
template:
metadata:
creationTimestamp: null
labels:
app: ubuntu-jenkins-slave
deploymentconfig: ubuntu-jenkins-slave
annotations:
openshift.io/generated-by: OpenShiftWebConsole
spec:
volumes:
- name: jenkins-worker-cache
persistentVolumeClaim:
claimName: jenkins-worker-cache
containers:
- resources: {}
terminationMessagePath: /dev/termination-log
name: ubuntu-jenkins-slave
env:
- name: JENKINS_URL
value: 'https://jenkins-jenkins2.apps.openshift.devopssolutions.net/'
- name: JENKINS_HOME
value: /home/jenkins
- name: JENKINS_SECRET
value: f39ca1694d0b85891b5d04777e3cafe249c57faa46b7c14a44deff2f819271a4
- name: JENKINS_AGENT_NAME
value: maven-docker
- name: JENKINS_TUNNEL
value: '172.30.24.27:50000'
securityContext:
privileged: true
allowPrivilegeEscalation: true
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: IfNotPresent
volumeMounts:
- name: jenkins-worker-cache
mountPath: /home/jenkins
terminationMessagePolicy: File
image: >-
image-registry.openshift-image-registry.svc:5000/jenkins2/ubuntu-jenkins-slave@sha256:91f1b4faeb1d2c045bc052c015c4384c33be50605bfe6a85bc90d69534a20f7b
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext:
runAsUser: 0
schedulerName: default-scheduler