blob: 60e04e3abbb7bfd4baeeb37204d83b1f0b47dd2e [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
Stanislav Riazanova0ec6bd2019-03-26 00:04:10 +040018 - name: nginx.ingress.kubernetes.io/proxy-body-size
19 value: "0"
20 - name: nginx.ingress.kubernetes.io/proxy-buffering
21 value: "off"
22 - name: nginx.ingress.kubernetes.io/proxy-request-buffering
23 value: "off"
Ivan Berezovskiyb8bdd862019-02-08 14:48:56 +040024 apiVersion: extensions/v1beta1
25 cluster: drivetrain
26 enabled: true
27 create: true
28 namespace: drivetrain
29 rules:
30 hosts:
31 - paths:
32 /jenkins:
33 service: jenkins
34 port: 8080
35 service:
36 jenkins_master:
37 enabled: true
38 cluster: drivetrain
39 service: jenkins
40 create: true
41 namespace: drivetrain
42 ports:
43 - port: 8080
44 name: ui
45 - port: 50000
46 name: jnlp
47 type: ClusterIP
48 apiVersion: extensions/v1beta1
49 kind: Deployment
50 replicas: 1
51 container:
52 jenkins-master:
53 image: ${_param:docker_image_jenkins}
54 image_pull_policy: IfNotPresent
55 variables:
Ivan Berezovskiy864e93a2019-04-02 19:45:15 +040056 - name: JENKINS_URL_PREFIX
57 value: "/jenkins"
Ivan Berezovskiyb8bdd862019-02-08 14:48:56 +040058 - name: JENKINS_HOME
59 value: ${_param:jenkins_home_dir_path}
60 - name: JAVA_OPTS
61 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}"
62 - name: JENKINS_NUM_EXECUTORS
63 # Number should be pasted with '' into template
64 value: "'${_param:jenkins_master_executors_num}'"
65 - name: JENKINS_OPTS
66 value: "--prefix=/jenkins --handlerCountMax=${_param:jenkins_master_max_concurent_requests}"
67 - name: https_proxy
68 value: ${_param:kdt_https_proxy}
69 - name: http_proxy
70 value: ${_param:kdt_http_proxy}
71 - name: no_proxy
72 value: ${_param:kdt_no_proxy}
73 ports:
74 - port: 8080
75 name: ui
76 - port: 50000
77 name: jnlp
78 volumes:
79 - name: jenkins-home
80 mount: ${_param:jenkins_home_dir_path}
81 read_only: false
82 volume:
83 jenkins-home:
84 type: glusterfs
85 endpoints: glusterfs
86 path: jenkins
87 read_only: false