blob: 5cdd32b04df953d5a35e73b9d99d883b5d862321 [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
Stanislav Riazanov6176bde2019-04-23 17:54:41 +040040 mount: /srv/volumes/jenkins_slaves/slave01
41 read_only: false
42 - name: docker-sock-volume
43 mount: /var/run/docker.sock
Alexandr Lovtsov4e0c3342019-03-19 12:52:21 +030044 read_only: false
45 volume:
46 jenkins-slave01:
47 type: glusterfs
48 endpoints: glusterfs
49 path: jenkins_slave01
50 read_only: false
Stanislav Riazanov6176bde2019-04-23 17:54:41 +040051 docker-sock-volume:
52 type: hostPath
53 path: /var/run/docker.sock