mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 15:12:08 +01:00
feat(infrastructure): add cloudflare, argocd
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
apiVersion: v2
|
||||
name: maxscale-helm
|
||||
version: 0.1.9
|
||||
version: 1.0.2
|
||||
description: Helm chart for MaxScale related Kubernetes manifests
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: networking.cfargotunnel.com/v1alpha1
|
||||
kind: TunnelBinding
|
||||
metadata:
|
||||
name: maxscale-tunnel-binding
|
||||
namespace: mariadb-operator
|
||||
subjects:
|
||||
- name: mariadb-repl-maxscale
|
||||
spec:
|
||||
target: https://mariadb-repl-maxscale-internal.mariadb-operator.svc.cluster.local:8989
|
||||
fqdn: maxscale.{{ .Values.base_domain }}
|
||||
noTlsVerify: true
|
||||
tunnelRef:
|
||||
kind: ClusterTunnel
|
||||
name: cluster-tunnel
|
||||
@@ -10,23 +10,23 @@ data:
|
||||
|
||||
echo "
|
||||
/* Maximum number of databases displayed on one page */
|
||||
$cfg['MaxDbList'] = 300;
|
||||
$cfg['MaxNavigationItems'] = 300;
|
||||
\$cfg['MaxDbList'] = 300;
|
||||
\$cfg['MaxNavigationItems'] = 300;
|
||||
/* Additional servers */
|
||||
$servers = [
|
||||
\$servers = [
|
||||
{{- range $i, $e := until (int (3)) }}
|
||||
'mariadb-repl-{{ $i }}',
|
||||
{{- end }}
|
||||
];
|
||||
foreach ($servers as $server) {
|
||||
$i++;
|
||||
foreach (\$servers as \$server) {
|
||||
\$i++;
|
||||
/* Authentication type */
|
||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||
\$cfg['Servers'][\$i]['auth_type'] = 'cookie';
|
||||
/* Server parameters */
|
||||
$cfg['Servers'][$i]['host'] = $server;
|
||||
$cfg['Servers'][$i]['port'] = '3306';
|
||||
$cfg['Servers'][$i]['compress'] = false;
|
||||
$cfg['Servers'][$i]['AllowNoPassword'] = false;
|
||||
\$cfg['Servers'][\$i]['host'] = \$server;
|
||||
\$cfg['Servers'][\$i]['port'] = '3306';
|
||||
\$cfg['Servers'][\$i]['compress'] = false;
|
||||
\$cfg['Servers'][\$i]['AllowNoPassword'] = false;
|
||||
}
|
||||
" >> /opt/bitnami/phpmyadmin/config.inc.php
|
||||
{{- end }}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: networking.cfargotunnel.com/v1alpha1
|
||||
kind: TunnelBinding
|
||||
metadata:
|
||||
name: phpmyadmin-tunnel-binding
|
||||
namespace: mariadb-operator
|
||||
subjects:
|
||||
- name: mariadb-repl-maxscale
|
||||
spec:
|
||||
target: http://phpmyadmin.mariadb-operator.svc.cluster.local:8080
|
||||
fqdn: mysql.{{ .Values.base_domain }}
|
||||
noTlsVerify: true
|
||||
tunnelRef:
|
||||
kind: ClusterTunnel
|
||||
name: cluster-tunnel
|
||||
@@ -13,3 +13,5 @@ metallb:
|
||||
|
||||
phpmyadmin:
|
||||
enabled: true
|
||||
|
||||
base_domain: example.com
|
||||
|
||||
Reference in New Issue
Block a user