[COMMON] Add port under mariadb-galera chart 30/121930/9
authorMahmoud Abdelhamid <mahmoud.abdelhamid@orange.com>
Tue, 15 Jun 2021 14:43:02 +0000 (16:43 +0200)
committerMahmoud Abdelhamid <mahmoud.abdelhamid@orange.com>
Wed, 16 Jun 2021 11:54:54 +0000 (13:54 +0200)
Update mariadb-galera chart to add internalport value under (.Values.
service) to resolve the port settings needed for the template (common.
mariadbPort) under (common/_mariadb.tpl).
This parameter will use the default value of mariadb 3306 which can be
changed in component charts.

Issue-ID: OOM-2773
Signed-off-by: Mahmoud Abdelhamid <mahmoud.abdelhamid@orange.com>
Change-Id: I0d59ba42f07426b14ec7bc7f157392b5f10b9006

kubernetes/common/mariadb-galera/values.yaml

index 4c77efc..ed9977a 100644 (file)
@@ -86,9 +86,10 @@ service:
   ##
   type: ClusterIP
   headless: {}
+  internalPort: &dbPort 3306
   ports:
     - name: mysql
-      port: 3306
+      port: *dbPort
   headlessPorts:
     - name: galera
       port: 4567