-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjenkins.yml
92 lines (92 loc) · 2.31 KB
/
jenkins.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cae-jenkins
spec:
replicas: 1
selector:
matchLabels:
app: cae-jenkins
template:
metadata:
labels:
app: cae-jenkins
creationTimestamp: null
spec:
tolerations:
- key: "node-role.kubernetes.io"
operator: "Equal"
value: "master"
effect: "NoSchedule"
nodeSelector:
kubernetes.io/role: master
containers:
- name: jenkins
image: registry.tech4comp.dbis.rwth-aachen.de/rwthacis/cae-jenkins:master
imagePullPolicy: Always
ports:
- containerPort: 8082
- containerPort: 50000
env:
- name: JENKINS_OPTS
value: --httpPort=8082
- name: JENKINS_JOB_TOKEN
valueFrom:
secretKeyRef:
name: jenkins-job-token
key: token
- name: TEMP_DEPLOYMENT_REPO
value: $(temp_deployment_repo)
- name: MICROSERVICE_WEBCONNECTOR_PORT
value: "8088"
- name: WIDGET_HTTP_PORT
value: "8087"
- name: MICROSERVICE_PORT
value: "8086"
- name: URL_JENKINS
value: $(jenkins_url)
- name: JENKINS_PREFIX
value: $(jenkins_prefix)
- name: DEPLOYMENT_URL
value: $(cae_application_deployment_url)
- name: CAE_DEPLOYMENT_DOCKER_IMAGE
value: $(cae_deployment_docker_image)
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
volumeMounts:
- name: jenkins-persistent-storage
mountPath: /var/jenkins_home
- name: docker-sock
mountPath: /var/run/docker.sock
envFrom:
- configMapRef:
name: cae-config
imagePullSecrets:
- name: docker-cred
volumes:
- name: jenkins-persistent-storage
persistentVolumeClaim:
claimName: cae-jenkins-pv-claim
- name: docker-sock
hostPath:
path: /var/run/docker.sock
---
kind: Service
apiVersion: v1
metadata:
name: cae-jenkins-service
spec:
type: NodePort
selector:
app: cae-jenkins
ports:
- name: http
port: 8082
targetPort: 8082
nodePort: 30167
- name: deploy
port: 8083
targetPort: 8083
nodePort: 30171