From abb25a7eb02b3327428c2936df52f59d516781ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 2 Sep 2023 10:58:50 +0300 Subject: [PATCH] mysql-clusters: Refer to generated phpMyAdmin config --- mysql-clusters/phpmyadmin.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mysql-clusters/phpmyadmin.yaml b/mysql-clusters/phpmyadmin.yaml index eb93ff6..15178f3 100644 --- a/mysql-clusters/phpmyadmin.yaml +++ b/mysql-clusters/phpmyadmin.yaml @@ -36,9 +36,15 @@ spec: protocol: TCP env: - name: PMA_HOSTS - value: shared.mysql-clusters.svc.cluster.local,external.mysql-clusters.svc.cluster.local + valueFrom: + configMapKeyRef: + name: phpmyadmin-connections + key: PMA_HOSTS - name: PMA_PORTS - value: 3306,3306 + valueFrom: + configMapKeyRef: + name: phpmyadmin-connections + key: PMA_HOSTS - name: PMA_ABSOLUTE_URI value: https://phpmyadmin.k-space.ee/ - name: UPLOAD_LIMIT @@ -60,6 +66,8 @@ spec: groups: Remote-Groups name: Remote-Name user: Remote-Username + allowedGroups: + - k-space:floor --- apiVersion: networking.k8s.io/v1 kind: Ingress