blob: e710cd23c4d15b828fd5f6cefdefafbc746bf429 [file] [log] [blame]
Ivan Berezovskiyb8bdd862019-02-08 14:48:56 +04001classes:
2- system.kubernetes.control.services.drivetrain.jenkins_slave_single
3parameters:
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 Lovtsov4e0c3342019-03-19 12:52:21 +030037 volumes:
38 - name: jenkins-slave02
Stanislav Riazanov6176bde2019-04-23 17:54:41 +040039 mount: /srv/volumes/jenkins_slaves/slave02
40 read_only: false
41 - name: docker-sock-volume02
42 mount: /var/run/docker.sock
Alexandr Lovtsov4e0c3342019-03-19 12:52:21 +030043 read_only: false
44 volume:
45 jenkins-slave02:
46 type: glusterfs
47 endpoints: glusterfs
48 path: jenkins_slave02
49 read_only: false
Stanislav Riazanov6176bde2019-04-23 17:54:41 +040050 docker-sock-volume02:
51 type: hostPath
52 path: /var/run/docker.sock
Ivan Berezovskiyb8bdd862019-02-08 14:48:56 +040053 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 Lovtsov4e0c3342019-03-19 12:52:21 +030083 volumes:
84 - name: jenkins-slave03
Stanislav Riazanov6176bde2019-04-23 17:54:41 +040085 mount: /srv/volumes/jenkins_slaves/slave03
86 read_only: false
87 - name: docker-sock-volume03
88 mount: /var/run/docker.sock
Alexandr Lovtsov4e0c3342019-03-19 12:52:21 +030089 read_only: false
90 volume:
91 jenkins-slave03:
92 type: glusterfs
93 endpoints: glusterfs
94 path: jenkins_slave03
95 read_only: false
Stanislav Riazanov6176bde2019-04-23 17:54:41 +040096 docker-sock-volume03:
97 type: hostPath
98 path: /var/run/docker.sock