blob: a198dff6e405e789e0e5b9bfb77e6c19f2c15ef8 [file] [log] [blame]
Ivan Berezovskiyb8bdd862019-02-08 14:48:56 +04001parameters:
2 _param:
3 jenkins_master_extra_opts: ""
4 jenkins_master_executors_num: 4
5 jenkins_master_max_concurent_requests: 40
6 jenkins_home_dir_path: /var/jenkins_home
7 kubernetes:
8 control:
9 ingress:
10 jenkins:
11 annotations:
12 - name: kubernetes.io/ingress.class
13 value: nginx
14 - name: nginx.ingress.kubernetes.io/ssl-redirect
15 value: false
16 - name: nginx.ingress.kubernetes.io/add-base-url
17 value: true
18 apiVersion: extensions/v1beta1
19 cluster: drivetrain
20 enabled: true
21 create: true
22 namespace: drivetrain
23 rules:
24 hosts:
25 - paths:
26 /jenkins:
27 service: jenkins
28 port: 8080
29 service:
30 jenkins_master:
31 enabled: true
32 cluster: drivetrain
33 service: jenkins
34 create: true
35 namespace: drivetrain
36 ports:
37 - port: 8080
38 name: ui
39 - port: 50000
40 name: jnlp
41 type: ClusterIP
42 apiVersion: extensions/v1beta1
43 kind: Deployment
44 replicas: 1
45 container:
46 jenkins-master:
47 image: ${_param:docker_image_jenkins}
48 image_pull_policy: IfNotPresent
49 variables:
50 - name: JENKINS_HOME
51 value: ${_param:jenkins_home_dir_path}
52 - name: JAVA_OPTS
53 value: " -server -XX:+AlwaysPreTouch -Xloggc:${_param:jenkins_home_dir_path}/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UseCGroupMemoryLimitForHeap -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1 -Djenkins.install.runSetupWizard=false -Dhudson.DNSMultiCast.disabled=true -Dhudson.udp=-1 -Dhudson.footerURL=https://www.mirantis.com ${_param:jenkins_master_extra_opts}"
54 - name: JENKINS_NUM_EXECUTORS
55 # Number should be pasted with '' into template
56 value: "'${_param:jenkins_master_executors_num}'"
57 - name: JENKINS_OPTS
58 value: "--prefix=/jenkins --handlerCountMax=${_param:jenkins_master_max_concurent_requests}"
59 - name: https_proxy
60 value: ${_param:kdt_https_proxy}
61 - name: http_proxy
62 value: ${_param:kdt_http_proxy}
63 - name: no_proxy
64 value: ${_param:kdt_no_proxy}
65 ports:
66 - port: 8080
67 name: ui
68 - port: 50000
69 name: jnlp
70 volumes:
71 - name: jenkins-home
72 mount: ${_param:jenkins_home_dir_path}
73 read_only: false
74 volume:
75 jenkins-home:
76 type: glusterfs
77 endpoints: glusterfs
78 path: jenkins
79 read_only: false