blob: 724ffc2ea628999b5be284e4024a79bb93693bc6 [file] [log] [blame]
Ivan Berezovskiyb8bdd862019-02-08 14:48:56 +04001parameters:
2 _param:
3 gerrit_ldap_user_pattern: 'uid={username}'
4 gerrit_ldap_server: "ldap://openldap"
5 gerrit_ldap_bind_user: ""
6 gerrit_ldap_bind_password: ""
7 gerrit_ldap_account_base: ""
8 gerrit_ldap_group_base: ""
9 gerrit_http_listen_url: proxy-http://*:8080/gerrit/
10 gerrit_public_host: 127.0.0.1
11 gerrit_extra_opts: ""
12 kubernetes:
13 common:
14 addons:
15 ingress-nginx:
16 tcp_data:
17 3306: drivetrain/gerrit-db:3306
18 29418: drivetrain/gerrit:29418
19 tcp_ports:
20 - 3306
21 - 29418
22 control:
23 ingress:
24 gerrit:
25 annotations:
26 - name: kubernetes.io/ingress.class
27 value: nginx
28 - name: nginx.ingress.kubernetes.io/ssl-redirect
29 value: false
30 - name: nginx.ingress.kubernetes.io/add-base-url
31 value: true
32 apiVersion: extensions/v1beta1
33 cluster: drivetrain
34 enabled: true
35 create: true
36 namespace: drivetrain
37 rules:
38 hosts:
39 - paths:
40 /gerrit:
41 service: gerrit
42 port: 8080
43 service:
44 gerrit-db:
45 enabled: true
46 cluster: drivetrain
47 service: gerrit-db
48 create: true
49 namespace: drivetrain
50 ports:
51 - port: 3306
52 name: db
53 type: ClusterIP
54 apiVersion: extensions/v1beta1
55 kind: Deployment
56 replicas: 1
57 container:
58 db:
59 image: ${_param:docker_image_mysql}
60 image_pull_policy: IfNotPresent
61 variables:
62 - name: MYSQL_USER
63 value: gerrit
64 - name: MYSQL_PASSWORD
65 value: ${_param:mysql_gerrit_password}
66 - name: MYSQL_DATABASE
67 value: gerrit
68 - name: MYSQL_ROOT_PASSWORD
69 value: ${_param:mysql_admin_password}
70 - name: MYSQL_START_TIMEOUT
71 value: "'300'"
72 ports:
73 - port: 3306
74 name: db
75 volumes:
76 - name: mysql-home
77 mount: /var/lib/mysql
78 read_only: false
79 volume:
80 mysql-home:
81 type: glusterfs
82 endpoints: glusterfs
83 path: mysql
84 read_only: false
85 gerrit:
86 enabled: true
87 cluster: drivetrain
88 service: gerrit
89 create: true
90 namespace: drivetrain
91 ports:
92 - port: 8080
93 name: ui
94 - port: 29418
95 name: ssh
96 type: ClusterIP
97 apiVersion: extensions/v1beta1
98 kind: Deployment
99 replicas: 1
100 container:
101 gerrit:
102 image: ${_param:docker_image_gerrit}
103 image_pull_policy: IfNotPresent
104 variables:
105 - name: DATABASE_TYPE
106 value: mysql
107 - name: DB_PORT_3306_TCP_ADDR
108 value: ${_param:kdt_metallb_address}
109 - name: DB_ENV_MYSQL_USER
110 value: gerrit
111 - name: DB_ENV_MYSQL_PASSWORD
112 value: ${_param:mysql_gerrit_password}
113 - name: DB_ENV_MYSQL_DB
114 value: gerrit
115 - name: AUTH_TYPE
116 value: ${_param:gerrit_auth_type}
117 - name: LDAP_SERVER
118 value: ${_param:gerrit_ldap_server}
119 - name: LDAP_ACCOUNTPATTERN
120 value: ${_param:gerrit_ldap_user_pattern}
121 - name: LDAP_ACCOUNTBASE
122 value: ${_param:gerrit_ldap_account_base}
123 - name: LDAP_GROUPBASE
124 value: ${_param:gerrit_ldap_group_base}
125 - name: LDAP_USERNAME
126 value: ${_param:gerrit_ldap_bind_user}
127 - name: LDAP_PASSWORD
128 value: ${_param:gerrit_ldap_bind_password}
129 - name: WEBURL
130 value: ${_param:gerrit_public_host}
131 - name: HTTPD_LISTENURL
132 value: ${_param:gerrit_http_listen_url}
133 - name: GERRIT_ADMIN_SSH_PUBLIC
134 value: ${_param:gerrit_admin_public_key}
135 - name: GERRIT_ADMIN_PWD
136 value: ${_param:gerrit_admin_password}
137 - name: GERRIT_ADMIN_EMAIL
138 value: ${_param:gerrit_admin_email}
139 - name: CANLOADINIFRAME
140 value: "'true'"
141 - name: JAVA_OPTIONS
142 value: ${_param:gerrit_extra_opts}
143 ports:
144 - port: 8080
145 name: ui
146 - port: 29418
147 name: ssh
148 volumes:
149 - name: gerrit-home
150 mount: /var/gerrit/review_site
151 read_only: false
152 volume:
153 gerrit-home:
154 type: glusterfs
155 endpoints: glusterfs
156 path: gerrit
157 read_only: false