Ivan Berezovskiy | b8bdd86 | 2019-02-08 14:48:56 +0400 | [diff] [blame] | 1 | parameters: |
| 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 Lovtsov | 4e0c334 | 2019-03-19 12:52:21 +0300 | [diff] [blame] | 38 | volumes: |
| 39 | - name: jenkins-slave01 |
Stanislav Riazanov | 6176bde | 2019-04-23 17:54:41 +0400 | [diff] [blame] | 40 | mount: /srv/volumes/jenkins_slaves/slave01 |
| 41 | read_only: false |
| 42 | - name: docker-sock-volume |
| 43 | mount: /var/run/docker.sock |
Alexandr Lovtsov | 4e0c334 | 2019-03-19 12:52:21 +0300 | [diff] [blame] | 44 | read_only: false |
Denis Egorenko | 4d18429 | 2019-05-16 17:14:27 +0400 | [diff] [blame^] | 45 | - name: entropy-volume |
| 46 | mount: /dev/random |
| 47 | read_only: true |
Alexandr Lovtsov | 4e0c334 | 2019-03-19 12:52:21 +0300 | [diff] [blame] | 48 | volume: |
| 49 | jenkins-slave01: |
| 50 | type: glusterfs |
| 51 | endpoints: glusterfs |
| 52 | path: jenkins_slave01 |
| 53 | read_only: false |
Stanislav Riazanov | 6176bde | 2019-04-23 17:54:41 +0400 | [diff] [blame] | 54 | docker-sock-volume: |
| 55 | type: hostPath |
| 56 | path: /var/run/docker.sock |
Denis Egorenko | 4d18429 | 2019-05-16 17:14:27 +0400 | [diff] [blame^] | 57 | entropy-volume: |
| 58 | type: hostPath |
| 59 | path: /dev/urandom |