shardingsphere-operator

module
v0.0.0-...-136905e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0

README

Apache ShardingSphere Operator

The ShardingSphere Operator uses predefined CustomResourceDefinitions for describing an Apache ShardingSphere Deployment on Kubernetes.

Requirements

With the help of ShardingSphere-Operator you can create a ShardingSphere-Proxy cluster including the ZooKeeper cluster in minutes.

For installation of SharingSphere-Operator, you will need a Kubernetes cluster. No matter it is a managed Kubernetes service like AWS EKS or self-hosted Kubernetes, or just a mini-kube, you can easily install ShardingSphere-Operator with respective ShardingSphere Operator Helm Charts, and apply the manifests in ShardingSphere Operator Cluster Helm Charts describing the expected Apache ShardingSphere deployment. Kubernetes 1.18+ is recommended.

Internal Architecture

img.png

Current Status

Minimum Viable Product

Quick Start

Please follows instructions to deploy a ShardingSphere cluster with version 5.2.0.

Features

  • Supports the use of proxy to configure and describe the shardingsphere-proxy cluster. For detailed configuration, see the deployment documentation.
  • Support native shardingsphere proxy server.yaml configuration. For specific support items, please refer to the documentation
  • Support automatic creation of HPA based on CPU metrics.
  • Support automatic download of MySQL driver.

Installation

Helm
  • ShardingSphere-Operator chart
    • Support deploy shardingsphere operator.
  • ShardingSphere-Cluster chart
    • Support deploy shardingsphere proxy cluster.
    • Support deploy Zookeeper by bitnami.
    • Support automatic configuration of the address of the governance center.
    • Use github pages to host repositories and support helm repo add to add repositories.

Development Requirements

To build ShardingSphere Operator from scratch you will need to install the following tools:

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the shardingsphere v1alpha1 API group +kubebuilder:object:generate=true +groupName=shardingsphere.apache.org
Package v1alpha1 contains API Schema definitions for the shardingsphere v1alpha1 API group +kubebuilder:object:generate=true +groupName=shardingsphere.apache.org
cmd
pkg
kubernetes/chaosmesh/mocks
Package mock_chaosmesh is a generated GoMock package.
Package mock_chaosmesh is a generated GoMock package.
reconcile/storagenode/aws/mocks
Package mock_aws is a generated GoMock package.
Package mock_aws is a generated GoMock package.
shardingsphere/mocks
Package mock_shardingsphere is a generated GoMock package.
Package mock_shardingsphere is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL