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