tools/kubeblocks_helm/README.md
Fellow the kubeblock docs Install kbcli
Fellow the kubeblock docs kubeblocks
First, use helm install pika cluster definition and install pika cluster.
cd ./tools/kubeblocks-helm/
helm install pika ./pika
helm install pika-cluster ./pika-cluster
Wait for pika cluster until the status to be Running.
kubectl get cluster --watch
Then connect codis front end.
kubectl port-forward svc/pika-cluster-codis-fe 8080
Open browser and visit http://localhost:8080
kubectl port-forward svc/pika-cluster-codis-proxy 19000
# start new terminal
redis-cli -p 19000 info
helm uninstall pika-cluster
helm uninstall pika
helm upgrade pika-cluster ./pika-cluster
scale in is not supported now.
First,use helm install pika-master-slave-group componentdefinition and pika-master-slave cluster
cd ./tools/kubeblocks-helm/
helm install pika-master-slave ./pika-master-slave
helm install pika-master-slave-cluster ./pika-master-slave-cluster
Wait for pika-master-slave-pika-{index} pods until the status all to be Running.
kubectl get pods --watch
kubectl port-forward svc/pika-master-slave-cluster-pika 9221
#start new terminal
redis-cli -p 9221
helm uninstall pika-master-slave-cluster
helm uninstall pika-master-slave
Ensure that the default BackupRepo is defined Fellow the kubeblock docs kubeblocks
create backup
kbcli cluster backup pika-master-slave-cluster --method datafile
Select a backup and create a cluster.
kbcli cluster restore <clusterName> --backup <backup-name>