blob: 4019c1ff01d52323a223584767f690bf87d3e324 [file] [log] [blame]
Ivan Berezovskiyb8bdd862019-02-08 14:48:56 +04001parameters:
2 _param:
3 jenkins_slave_extra_opts: ""
4 jenkins_master_url: http://jenkins:8080/jenkins
5 kubernetes:
6 control:
7 service:
8 jenkins_slave01:
9 create: true
10 service: slave01
11 namespace: drivetrain
12 apiVersion: extensions/v1beta1
13 kind: Deployment
14 replicas: 1
15 container:
16 jenkins-slave:
17 image: ${_param:docker_image_jenkins_slave}
18 image_pull_policy: IfNotPresent
19 variables:
20 - name: JENKINS_URL
21 value: ${_param:jenkins_master_url}
22 - name: JENKINS_AGENT_NAME
23 value: slave01
24 - name: JENKINS_UPDATE_SLAVE
25 value: "'true'"
26 - name: JENKINS_LOGIN
27 value: ${_param:jenkins_client_user}
28 - name: JENKINS_PASSWORD
29 value: ${_param:jenkins_client_password}
30 - name: JAVA_OPTS
31 value: "-Dhttp.proxyHost=${_param:kdt_http_proxy} -Dhttp.nonProxyHosts=|jenkins ${_param:jenkins_slave_extra_opts}"
32 - name: https_proxy
33 value: ${_param:kdt_https_proxy}
34 - name: http_proxy
35 value: ${_param:kdt_http_proxy}
36 - name: no_proxy
37 value: ${_param:kdt_no_proxy}
Alexandr Lovtsov4e0c3342019-03-19 12:52:21 +030038 volumes:
39 - name: jenkins-slave01
40 mount: /var/lib/jenkins
41 read_only: false
42 volume:
43 jenkins-slave01:
44 type: glusterfs
45 endpoints: glusterfs
46 path: jenkins_slave01
47 read_only: false