tree: b6bee3171d849500bce079e6e8f6d65365ea6a9f [path history] [tgz]
  1. apache-shardingsphere-proxy/
  2. README.md
  3. README_ZH.md
shardingsphere-charts/README.md

Use Helm

Use Helm to provide guidance for the installation of ShardingSphere-Proxy instance in Kubernetes cluster.

Quick Start

helm repo add shardingsphere https://shardingsphere.apache.org/charts
helm install shardingsphere-proxy shardingsphere/apache-shardingsphere-proxy

Step By Step

Requirements

Kubernetes 1.18+

kubectl

Helm 3.2.0+

Use StorageClass to allow dynamic provisioning of Persistent Volumes (PV) for data persistent.

Install

Online installation

Add ShardingSphere-Proxy to the local helm repo:

helm repo add shardingsphere https://shardingsphere.apache.org/charts

Install ShardingSphere-Proxy charts:

helm install shardingsphere-proxy shardingsphere/apache-shardingsphere-proxy

Source installation

cd apache-shardingsphere-proxy/charts/governance
helm dependency build 
cd ../..
helm dependency build 
cd ..
helm install shardingsphere-proxy apache-shardingsphere-proxy

Charts will be installed with default configuration if above commands executed. Please refer configuration items description below to get more details. Execute helm list to acquire all installed releases.

Uninstall

helm uninstall shardingsphere-proxy

Delete all release records by default, add --keep-history to keep them.

Parameters

Governance-Node parameters

NameDescriptionValue
governance.enabledSwitch to enable or disable the governance helm charttrue

Governance-Node ZooKeeper parameters

NameDescriptionValue
governance.zookeeper.enabledSwitch to enable or disable the ZooKeeper helm charttrue
governance.zookeeper.replicaCountNumber of ZooKeeper nodes1
governance.zookeeper.persistence.enabledEnable persistence on ZooKeeper using PVC(s)false
governance.zookeeper.persistence.storageClassPersistent Volume storage class""
governance.zookeeper.persistence.accessModesPersistent Volume access modes["ReadWriteOnce"]
governance.zookeeper.persistence.sizePersistent Volume size8Gi
governance.zookeeper.resources.limitsThe resources limits for the ZooKeeper containers{}
governance.zookeeper.resources.requests.memoryThe requested memory for the ZooKeeper containers256Mi
governance.zookeeper.resources.requests.cpuThe requested cpu for the ZooKeeper containers250m

Compute-Node ShardingSphere-Proxy parameters

NameDescriptionValue
compute.image.repositoryImage name of ShardingSphere-Proxy.apache/shardingsphere-proxy
compute.image.pullPolicyThe policy for pulling ShardingSphere-Proxy imageIfNotPresent
compute.image.tagShardingSphere-Proxy image tag5.1.2
compute.imagePullSecretsSpecify docker-registry secret names as an array[]
compute.resources.limitsThe resources limits for the ShardingSphere-Proxy containers{}
compute.resources.requests.memoryThe requested memory for the ShardingSphere-Proxy containers2Gi
compute.resources.requests.cpuThe requested cpu for the ShardingSphere-Proxy containers200m
compute.replicasNumber of cluster replicas3
compute.service.typeShardingSphere-Proxy network modeClusterIP
compute.service.portShardingSphere-Proxy expose port3307
compute.mysqlConnector.versionMySQL connector version5.1.49
compute.startPortShardingSphere-Proxy start port3307
compute.serverConfigServerConfiguration file for ShardingSphere-Proxy""