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} |