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} |
Alexandr Lovtsov | 4e0c334 | 2019-03-19 12:52:21 +0300 | [diff] [blame] | 37 | volumes: |
| 38 | - name: jenkins-slave02 |
Stanislav Riazanov | 6176bde | 2019-04-23 17:54:41 +0400 | [diff] [blame] | 39 | mount: /srv/volumes/jenkins_slaves/slave02 |
| 40 | read_only: false |
| 41 | - name: docker-sock-volume02 |
| 42 | mount: /var/run/docker.sock |
Alexandr Lovtsov | 4e0c334 | 2019-03-19 12:52:21 +0300 | [diff] [blame] | 43 | read_only: false |
| 44 | volume: |
| 45 | jenkins-slave02: |
| 46 | type: glusterfs |
| 47 | endpoints: glusterfs |
| 48 | path: jenkins_slave02 |
| 49 | read_only: false |
Stanislav Riazanov | 6176bde | 2019-04-23 17:54:41 +0400 | [diff] [blame] | 50 | docker-sock-volume02: |
| 51 | type: hostPath |
| 52 | path: /var/run/docker.sock |
Ivan Berezovskiy | b8bdd86 | 2019-02-08 14:48:56 +0400 | [diff] [blame] | 53 | jenkins_slave03: |
| 54 | create: true |
| 55 | service: slave03 |
| 56 | namespace: drivetrain |
| 57 | apiVersion: extensions/v1beta1 |
| 58 | kind: Deployment |
| 59 | replicas: 1 |
| 60 | container: |
| 61 | jenkins-slave: |
| 62 | image: ${_param:docker_image_jenkins_slave} |
| 63 | image_pull_policy: IfNotPresent |
| 64 | variables: |
| 65 | - name: JENKINS_URL |
| 66 | value: ${_param:jenkins_master_url} |
| 67 | - name: JENKINS_AGENT_NAME |
| 68 | value: slave03 |
| 69 | - name: JENKINS_UPDATE_SLAVE |
| 70 | value: "'true'" |
| 71 | - name: JENKINS_LOGIN |
| 72 | value: ${_param:jenkins_client_user} |
| 73 | - name: JENKINS_PASSWORD |
| 74 | value: ${_param:jenkins_client_password} |
| 75 | - name: JAVA_OPTS |
| 76 | value: "-Dhttp.proxyHost=${_param:kdt_http_proxy} -Dhttp.nonProxyHosts=|jenkins ${_param:jenkins_slave_extra_opts}" |
| 77 | - name: https_proxy |
| 78 | value: ${_param:kdt_https_proxy} |
| 79 | - name: http_proxy |
| 80 | value: ${_param:kdt_http_proxy} |
| 81 | - name: no_proxy |
| 82 | value: ${_param:kdt_no_proxy} |
Alexandr Lovtsov | 4e0c334 | 2019-03-19 12:52:21 +0300 | [diff] [blame] | 83 | volumes: |
| 84 | - name: jenkins-slave03 |
Stanislav Riazanov | 6176bde | 2019-04-23 17:54:41 +0400 | [diff] [blame] | 85 | mount: /srv/volumes/jenkins_slaves/slave03 |
| 86 | read_only: false |
| 87 | - name: docker-sock-volume03 |
| 88 | mount: /var/run/docker.sock |
Alexandr Lovtsov | 4e0c334 | 2019-03-19 12:52:21 +0300 | [diff] [blame] | 89 | read_only: false |
| 90 | volume: |
| 91 | jenkins-slave03: |
| 92 | type: glusterfs |
| 93 | endpoints: glusterfs |
| 94 | path: jenkins_slave03 |
| 95 | read_only: false |
Stanislav Riazanov | 6176bde | 2019-04-23 17:54:41 +0400 | [diff] [blame] | 96 | docker-sock-volume03: |
| 97 | type: hostPath |
| 98 | path: /var/run/docker.sock |