https://github.com/apecloud/k8sdatabaseclientexamples
Examples for an outside user to access databases in KubeBlocks with client SDK under different network environments.
https://github.com/apecloud/k8sdatabaseclientexamples
Last synced: 5 months ago
JSON representation
Examples for an outside user to access databases in KubeBlocks with client SDK under different network environments.
- Host: GitHub
- URL: https://github.com/apecloud/k8sdatabaseclientexamples
- Owner: apecloud
- Created: 2024-06-05T07:59:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-05T15:31:16.000Z (over 1 year ago)
- Last Synced: 2025-03-01T23:51:28.623Z (10 months ago)
- Language: Java
- Size: 60.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DBClientExamples
Examples for an outside user to access databases in KubeBlocks with client SDK under different network environments.
## Supported Databases & Networks
KubeBlocks supports a wide range of databases, nearly 30+ types.
Here we only show examples for some of them, especially the frequently used ones.
If your applications are running under same k8s with KubeBlocks, just access the databases with ClusterIP, Pod headless service, and they are easy to take on.
When your applications access the databases from another k8s or baremetal environments, NodePort and LoadBalancer are always recommended network solutions.
So here we give some examples for NodePort and LoadBalancer.
## How to run examples
### MySQL
gradle runMySQL
### PostgreSQL
gradle runPostgreSQL
### MongoDB Replicaset
gradle runMongoDB
### Sentinel Redis
gradle runSentinelRedis