MCPcopy Index your code
hub / github.com/RocksLabs/kvrocks-operator

github.com/RocksLabs/kvrocks-operator @kvrocks-crd-0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release kvrocks-crd-0.1.0 ↗ · + Follow
296 symbols 1,179 edges 60 files 37 documented · 12% updated 6mo agokvrocks-operator-0.1.0 · 2023-10-10★ 4414 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

KvrocksOperator

This project provides an operator for managing kvrocks instances on Kubernetes.It is built using the kubebuilder framework.

Quick Start

Deploy

  1. Install OpenKruise
helm repo add openkruise https://openkruise.github.io/charts/
helm repo update
helm install kruise openkruise/kruise --version 1.4.0
  1. Create ns kvrocks
kubectl create ns kvrocks
  1. Use helm to install and manage the crd/operator
helm repo add kvrocks-operator https://rockslabs.github.io/kvrocks-operator
helm install kvrocks-crd kvrocks-operator/kvrocks-crd -n kvrocks
helm install kvrocks-operator kvrocks-operator/kvrocks-operator -n kvrocks
  1. Modify the examples/standard.yaml examples/sentinel.yaml and then apply
kubectl apply -f examples/standard.yaml examples/sentinel.yaml

Notice

1.You need to prepare the storageclass and indicate it in the manifest.

2.We currently support only standalone kvrocks clusters and those with sentinels. Cluster mode is temporarily unsupported.

3.Note the naming rules of kvrocks custom resource. kvrocks-standard-1-demo consists of four parts

(1). kvrocks

(2). type

(3). Indicate the sentinel cluster index used. In this case, the sentinel cluster is: sentinel-1

(4). cluster name

Running e2e tests

Please refer to the Test README for more information.

Observability Configuration Guide

Please refer to the Observability Configuration Guide for more information.

Development Guide

Please refer to the Development Guide for more information.

Design Details

For more design etails, please refer to Design Document.

Community

Feel free to ask us any questions through issues or slack

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 149
Function 117
Struct 27
TypeAlias 2
Interface 1

Languages

Go100%

Modules by API surface

api/v1alpha1/zz_generated.deepcopy.go22 symbols
pkg/client/kvrocks/kvrocks_client_test.go17 symbols
test/e2e/util/kubernetes_env.go15 symbols
api/v1alpha1/kvrocks_types.go13 symbols
pkg/controllers/kvrocks_controller.go11 symbols
pkg/client/kvrocks/kvrocks_client.go11 symbols
pkg/client/kvrocks/standard.go9 symbols
pkg/resources/statefulset.go8 symbols
pkg/controllers/events/event.go8 symbols
pkg/controllers/cluster/kvrocks.go8 symbols
pkg/client/k8s/statefulset.go8 symbols
pkg/resources/labels.go7 symbols

For agents

$ claude mcp add kvrocks-operator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page