-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add external backend doc for proxysql
Signed-off-by: TasdidurRahman <[email protected]>
- Loading branch information
1 parent
9138668
commit 8080168
Showing
13 changed files
with
563 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,7 +120,7 @@ spec: | |
|
||
### .spec.backend | ||
|
||
`.spec.backend` specifies the information about the appbinding of the backend MySQL/PerconaXtraDB/MariaDB. The appbinding should contain the basic informations like connections url, server type , ssl infos etc. To know more about what appbinding is, you can refer to the Appbinding page in the concept section. See the api [here](https://pkg.go.dev/kubedb.dev/[email protected]/apis/kubedb/v1alpha2#:~:text=//%20Backend%20refers%20to%20the%20AppBinding%20of%20the%20backend%20MySQL/MariaDB/Percona%2DXtraDB%20server%0A%09Backend%20*core.LocalObjectReference%20%60json%3A%22backend%2Comitempty%22%60). | ||
`.spec.backend` specifies the information about the appbinding of the backend MySQL/PerconaXtraDB/MariaDB. The appbinding should contain the basic informations like connections url, server type , ssl infos etc. To know more about what appbinding is, you can refer to the [Appbinding](/docs/guides/proxysql/concepts/appbinding/index.md) page in the concept section. See the api [here](https://pkg.go.dev/kubedb.dev/[email protected]/apis/kubedb/v1alpha2#:~:text=//%20Backend%20refers%20to%20the%20AppBinding%20of%20the%20backend%20MySQL/MariaDB/Percona%2DXtraDB%20server%0A%09Backend%20*core.LocalObjectReference%20%60json%3A%22backend%2Comitempty%22%60). | ||
|
||
### .spec.authSecret | ||
|
||
|
@@ -171,6 +171,8 @@ ProxySQL managed by KubeDB can be monitored with builtin-Prometheus and Promethe | |
|
||
`.spec.initConfig.adminVariables` section carries all the `admin_variables` info that you want to set for the proxysql. You need to mention the variables you want to set with its value in a key-value format under this section and the KubeDB operator will bootstrap the proxysql with this. | ||
|
||
Checkout this [link](/docs/guides/proxysql/concepts/declarativeConfiguration/index.md) for detailed overview on declarative configuration. | ||
|
||
### .spec.configSecret | ||
|
||
`.spec.configSecret` is another field to pass the bootstrap configuration for the proxysql. If you want to pass the configuration through a secret you can just mention the secret name under this field. The secret should look something like the following | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
docs/guides/proxysql/quickstart/xtradbext/examples/appbinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: appcatalog.appscode.com/v1alpha1 | ||
kind: AppBinding | ||
metadata: | ||
name: xtradb-galera-appbinding | ||
namespace: demo | ||
spec: | ||
clientConfig: | ||
caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURJekNDQWd1Z0F3SUJBZ0lVWUp4dVBqcW1EbjJPaVdkMGk5cUZ2MGdzdzQwd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0lURU9NQXdHQTFVRUF3d0ZiWGx6Y1d3eER6QU5CZ05WQkFvTUJtdDFZbVZrWWpBZUZ3MHlNakV3TVRBeApNalE1TlROYUZ3MHlNekV3TVRBeE1qUTVOVE5hTUNFeERqQU1C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ZUtvdUw5Ci9aQjVYQ1FVRlRScFlEQjB1aFk1NTAwR1kxYnRpRUVKaVdZVTg0UVFzampINVZlRkFtN21ldWRkak9pTEM3dUMKSmFISkRLa0txZWtDSkZ6YzF0QmpHQVZUNHZaTGcrUldhUmJHa01Qdm1WZVFIOUtSMVN2aQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg== | ||
service: | ||
name: xtradb-galera | ||
path: / | ||
port: 3306 | ||
scheme: mysql | ||
url: tcp(xtradb-galera.demo.svc:3306)/ | ||
secret: | ||
name: xtradb-galera-auth | ||
type: perconaxtradb | ||
tlsSecret: | ||
name: xtradb-galera-client-cert | ||
version: 8.0.26 |
12 changes: 12 additions & 0 deletions
12
docs/guides/proxysql/quickstart/xtradbext/examples/sample-proxy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: ProxySQL | ||
metadata: | ||
name: proxy-server | ||
namespace: demo | ||
spec: | ||
version: "2.4.4-debian" | ||
replicas: 1 | ||
syncUsers: true | ||
backend: | ||
name: xtradb-galera-appbinding | ||
terminationPolicy: WipeOut |
26 changes: 26 additions & 0 deletions
26
docs/guides/proxysql/quickstart/xtradbext/examples/ubuntu.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: ubuntu | ||
name: ubuntu | ||
namespace: demo | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: ubuntu | ||
strategy: {} | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: ubuntu | ||
spec: | ||
containers: | ||
- image: ubuntu | ||
imagePullPolicy: IfNotPresent | ||
name: ubuntu | ||
command: ["/bin/sleep", "3650d"] | ||
resources: {} |
Oops, something went wrong.