From fb3e8869374f48c4d5f9b63a7218020bd39c6e09 Mon Sep 17 00:00:00 2001
From: Abdalluh Mostafa <abdalluh.mostafa@gmail.com>
Date: Mon, 23 May 2022 16:43:39 +0200
Subject: [PATCH] add selector to master only

---
 kmm4g/mysql-cluster/templates/NodePort.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kmm4g/mysql-cluster/templates/NodePort.yaml b/kmm4g/mysql-cluster/templates/NodePort.yaml
index 8e2582d..a3fd4fd 100644
--- a/kmm4g/mysql-cluster/templates/NodePort.yaml
+++ b/kmm4g/mysql-cluster/templates/NodePort.yaml
@@ -6,6 +6,7 @@ spec:
   type: NodePort
   selector:
     mysql.presslabs.org/cluster: {{ .Release.Name }}-{{ template "mysql-cluster.name" . }}-db
+    role: master
   ports:
   - nodePort: {{ .Values.mysqlnodeport }}
     port: 3306
-- 
GitLab