Ivan Berezovskiy | b8bdd86 | 2019-02-08 14:48:56 +0400 | [diff] [blame^] | 1 | classes: |
| 2 | - system.kubernetes.control.services.drivetrain.jenkins_slave_single |
| 3 | parameters: |
| 4 | kubernetes: |
| 5 | control: |
| 6 | service: |
| 7 | jenkins_slave02: |
| 8 | create: true |
| 9 | service: slave02 |
| 10 | namespace: drivetrain |
| 11 | apiVersion: extensions/v1beta1 |
| 12 | kind: Deployment |
| 13 | replicas: 1 |
| 14 | container: |
| 15 | jenkins-slave: |
| 16 | image: ${_param:docker_image_jenkins_slave} |
| 17 | image_pull_policy: IfNotPresent |
| 18 | variables: |
| 19 | - name: JENKINS_URL |
| 20 | value: ${_param:jenkins_master_url} |
| 21 | - name: JENKINS_AGENT_NAME |
| 22 | value: slave02 |
| 23 | - name: JENKINS_UPDATE_SLAVE |
| 24 | value: "'true'" |
| 25 | - name: JENKINS_LOGIN |
| 26 | value: ${_param:jenkins_client_user} |
| 27 | - name: JENKINS_PASSWORD |
| 28 | value: ${_param:jenkins_client_password} |
| 29 | - name: JAVA_OPTS |
| 30 | value: "-Dhttp.proxyHost=${_param:kdt_http_proxy} -Dhttp.nonProxyHosts=|jenkins ${_param:jenkins_slave_extra_opts}" |
| 31 | - name: https_proxy |
| 32 | value: ${_param:kdt_https_proxy} |
| 33 | - name: http_proxy |
| 34 | value: ${_param:kdt_http_proxy} |
| 35 | - name: no_proxy |
| 36 | value: ${_param:kdt_no_proxy} |
| 37 | jenkins_slave03: |
| 38 | create: true |
| 39 | service: slave03 |
| 40 | namespace: drivetrain |
| 41 | apiVersion: extensions/v1beta1 |
| 42 | kind: Deployment |
| 43 | replicas: 1 |
| 44 | container: |
| 45 | jenkins-slave: |
| 46 | image: ${_param:docker_image_jenkins_slave} |
| 47 | image_pull_policy: IfNotPresent |
| 48 | variables: |
| 49 | - name: JENKINS_URL |
| 50 | value: ${_param:jenkins_master_url} |
| 51 | - name: JENKINS_AGENT_NAME |
| 52 | value: slave03 |
| 53 | - name: JENKINS_UPDATE_SLAVE |
| 54 | value: "'true'" |
| 55 | - name: JENKINS_LOGIN |
| 56 | value: ${_param:jenkins_client_user} |
| 57 | - name: JENKINS_PASSWORD |
| 58 | value: ${_param:jenkins_client_password} |
| 59 | - name: JAVA_OPTS |
| 60 | value: "-Dhttp.proxyHost=${_param:kdt_http_proxy} -Dhttp.nonProxyHosts=|jenkins ${_param:jenkins_slave_extra_opts}" |
| 61 | - name: https_proxy |
| 62 | value: ${_param:kdt_https_proxy} |
| 63 | - name: http_proxy |
| 64 | value: ${_param:kdt_http_proxy} |
| 65 | - name: no_proxy |
| 66 | value: ${_param:kdt_no_proxy} |