blob: f1617b47ccaf0e6af633d482a9a1118f69e192f7 [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
Denis Egorenko4d184292019-05-16 17:14:27 +040044 - name: entropy-volume02
45 mount: /dev/random
46 read_only: true
Alexandr Lovtsov4e0c3342019-03-19 12:52:21 +030047 volume:
48 jenkins-slave02:
49 type: glusterfs
50 endpoints: glusterfs
51 path: jenkins_slave02
52 read_only: false
Stanislav Riazanov6176bde2019-04-23 17:54:41 +040053 docker-sock-volume02:
54 type: hostPath
55 path: /var/run/docker.sock
Denis Egorenko4d184292019-05-16 17:14:27 +040056 entropy-volume02:
57 type: hostPath
58 path: /dev/urandom
Ivan Berezovskiyb8bdd862019-02-08 14:48:56 +040059 jenkins_slave03:
60 create: true
61 service: slave03
62 namespace: drivetrain
63 apiVersion: extensions/v1beta1
64 kind: Deployment
65 replicas: 1
66 container:
67 jenkins-slave:
68 image: ${_param:docker_image_jenkins_slave}
69 image_pull_policy: IfNotPresent
70 variables:
71 - name: JENKINS_URL
72 value: ${_param:jenkins_master_url}
73 - name: JENKINS_AGENT_NAME
74 value: slave03
75 - name: JENKINS_UPDATE_SLAVE
76 value: "'true'"
77 - name: JENKINS_LOGIN
78 value: ${_param:jenkins_client_user}
79 - name: JENKINS_PASSWORD
80 value: ${_param:jenkins_client_password}
81 - name: JAVA_OPTS
82 value: "-Dhttp.proxyHost=${_param:kdt_http_proxy} -Dhttp.nonProxyHosts=|jenkins ${_param:jenkins_slave_extra_opts}"
83 - name: https_proxy
84 value: ${_param:kdt_https_proxy}
85 - name: http_proxy
86 value: ${_param:kdt_http_proxy}
87 - name: no_proxy
88 value: ${_param:kdt_no_proxy}
Alexandr Lovtsov4e0c3342019-03-19 12:52:21 +030089 volumes:
90 - name: jenkins-slave03
Stanislav Riazanov6176bde2019-04-23 17:54:41 +040091 mount: /srv/volumes/jenkins_slaves/slave03
92 read_only: false
93 - name: docker-sock-volume03
94 mount: /var/run/docker.sock
Alexandr Lovtsov4e0c3342019-03-19 12:52:21 +030095 read_only: false
Denis Egorenko4d184292019-05-16 17:14:27 +040096 - name: entropy-volume03
97 mount: /dev/random
98 read_only: true
Alexandr Lovtsov4e0c3342019-03-19 12:52:21 +030099 volume:
100 jenkins-slave03:
101 type: glusterfs
102 endpoints: glusterfs
103 path: jenkins_slave03
104 read_only: false
Stanislav Riazanov6176bde2019-04-23 17:54:41 +0400105 docker-sock-volume03:
106 type: hostPath
107 path: /var/run/docker.sock
Denis Egorenko4d184292019-05-16 17:14:27 +0400108 entropy-volume03:
109 type: hostPath
110 path: /dev/urandom