blob: 7840d31d8625c119364092eeff55e4ba96e689f5 [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
39 mount: /var/lib/jenkins
40 read_only: false
41 volume:
42 jenkins-slave02:
43 type: glusterfs
44 endpoints: glusterfs
45 path: jenkins_slave02
46 read_only: false
Ivan Berezovskiyb8bdd862019-02-08 14:48:56 +040047 jenkins_slave03:
48 create: true
49 service: slave03
50 namespace: drivetrain
51 apiVersion: extensions/v1beta1
52 kind: Deployment
53 replicas: 1
54 container:
55 jenkins-slave:
56 image: ${_param:docker_image_jenkins_slave}
57 image_pull_policy: IfNotPresent
58 variables:
59 - name: JENKINS_URL
60 value: ${_param:jenkins_master_url}
61 - name: JENKINS_AGENT_NAME
62 value: slave03
63 - name: JENKINS_UPDATE_SLAVE
64 value: "'true'"
65 - name: JENKINS_LOGIN
66 value: ${_param:jenkins_client_user}
67 - name: JENKINS_PASSWORD
68 value: ${_param:jenkins_client_password}
69 - name: JAVA_OPTS
70 value: "-Dhttp.proxyHost=${_param:kdt_http_proxy} -Dhttp.nonProxyHosts=|jenkins ${_param:jenkins_slave_extra_opts}"
71 - name: https_proxy
72 value: ${_param:kdt_https_proxy}
73 - name: http_proxy
74 value: ${_param:kdt_http_proxy}
75 - name: no_proxy
76 value: ${_param:kdt_no_proxy}
Alexandr Lovtsov4e0c3342019-03-19 12:52:21 +030077 volumes:
78 - name: jenkins-slave03
79 mount: /var/lib/jenkins
80 read_only: false
81 volume:
82 jenkins-slave03:
83 type: glusterfs
84 endpoints: glusterfs
85 path: jenkins_slave03
86 read_only: false