You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Integrating mysql clusters into your own helm charts
3
3
linktitle: MySQL Operator Integration
4
4
description: How to integrate the MySQL operator with your application.
5
5
categories: [mysql operator]
@@ -13,14 +13,86 @@ aliases: []
13
13
toc: true
14
14
---
15
15
16
-
After cluster creation, you can update the provided secret with a new field named `DB_CONNECT_URL` that contains a [DSN](https://en.wikipedia.org/wiki/Data_source_name) to connect to the writable cluster endpoint. You can check the `_helper.tpl` file for more insights.
16
+
After cluster creation, you can update the provided secret with a new field named `DB_CONNECT_URL`
17
+
that contains a [DSN](https://en.wikipedia.org/wiki/Data_source_name) to connect to the writable
18
+
cluster endpoint. You can check the `_helper.tpl` file for more insights.
17
19
18
20
The MySQL operator provides 3 services to access the nodes:
19
21
20
-
*`<cluster_name>-mysql-master` is the service that points to the master node and this endpoint should be used for writes. This service is usually used to construct the DSN.
22
+
*`<cluster_name>-mysql-master` is the service that points to the master node and this endpoint
23
+
should be used for writes. This service is usually used to construct the DSN.
21
24
22
-
*`<cluster_name>-mysql` is the service that routes traffic to all the _healthy_ nodes from the cluster. You should use this endpoint for reads.
25
+
*`<cluster_name>-mysql` is the service that routes traffic to all the _healthy_ nodes from the
26
+
cluster. You should use this endpoint for reads.
23
27
24
-
*`<cluster_name>-mysql-nodes` is the service used internally to access nodes. You can use this service to access a specific node (e.g. `<cluster_name>-mysql-0.<cluster-name>-mysql-nodes.default`)
28
+
*`<cluster_name>-mysql-nodes` is the service used internally to access nodes. You can use this
0 commit comments