feat: add more services

This commit is contained in:
Sun-ZhenXing
2026-02-23 18:10:02 +08:00
parent 2544127de2
commit 530e6d7f5d
48 changed files with 2895 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
HELM_RELEASE_NAME ?= nebula
HELM_APPLICATION_NAME ?= nebula-cluster
HELM_NAMESPACE ?= nebula
HELM_DIR ?= ./helm
HELM_CHART_VERSION ?=
HELM_VALUES_FILE ?= ./values.yaml
HELM_OCI_REGISTRY ?=
HELM_OCI_NAMESPACE ?=
HELM_OCI_USERNAME ?=
HELM_OCI_PASSWORD ?=
HELM_REPO_NAME ?= nebula-operator
HELM_REPO_URL ?= https://vesoft-inc.github.io/nebula-operator/charts
HELM_CHART_REPO ?= $(HELM_REPO_NAME)/$(HELM_APPLICATION_NAME)
include ../_template/base.mk
+77
View File
@@ -0,0 +1,77 @@
# NebulaGraph
## Introduction
NebulaGraph is an open-source distributed graph database built for super large-scale graphs with milliseconds of latency. It delivers high performance, scalability, and availability for storing and processing graph data.
This Helm chart deploys NebulaGraph cluster using the NebulaGraph Operator on Kubernetes.
## Installation
To install NebulaGraph, run:
```bash
make install
```
## Prerequisites
NebulaGraph Operator must be installed first:
```bash
helm repo add nebula-operator https://vesoft-inc.github.io/nebula-operator/charts
helm install nebula-operator nebula-operator/nebula-operator --namespace nebula-operator --create-namespace
```
## Usage
After installation:
```bash
# Check if NebulaGraph cluster is running
kubectl get pods -n nebula
# Access Graphd service
kubectl port-forward svc/nebula-graphd -n nebula 9669:9669
```
## Configuration
The default configuration includes:
- NebulaGraph cluster with 3 graphd, 3 metad, and 3 storaged nodes
- Persistent storage for data
- Default port configurations
## Components
- **Graphd**: Query engine for graph processing
- **Metad**: Metadata management
- **Storaged**: Storage engine for graph data
## Connecting to NebulaGraph
Use Nebula Console to connect:
```bash
# Install nebula-console
# Connect to the cluster
./nebula-console -addr 127.0.0.1 -port 9669 -u root -p nebula
```
## Graph Data Model
NebulaGraph uses:
- **Vertices**: Represent entities
- **Edges**: Represent relationships
- **Tags**: Define vertex types
- **Edge Types**: Define relationship types
## Uninstall
To uninstall NebulaGraph:
```bash
make uninstall
```
+77
View File
@@ -0,0 +1,77 @@
# NebulaGraph
## 简介
NebulaGraph 是一个开源的分布式图数据库,专为超大规模图数据而设计,具有毫秒级延迟。它为存储和处理图数据提供高性能、可扩展性和可用性。
此 Helm Chart 使用 NebulaGraph Operator 在 Kubernetes 上部署 NebulaGraph 集群。
## 安装
安装 NebulaGraph
```bash
make install
```
## 先决条件
必须首先安装 NebulaGraph Operator
```bash
helm repo add nebula-operator https://vesoft-inc.github.io/nebula-operator/charts
helm install nebula-operator nebula-operator/nebula-operator --namespace nebula-operator --create-namespace
```
## 使用
安装完成后:
```bash
# 检查 NebulaGraph 集群是否运行
kubectl get pods -n nebula
# 访问 Graphd 服务
kubectl port-forward svc/nebula-graphd -n nebula 9669:9669
```
## 配置
默认配置包括:
- NebulaGraph 集群,包含 3 个 graphd、3 个 metad 和 3 个 storaged 节点
- 数据持久化存储
- 默认端口配置
## 组件
- **Graphd**: 图处理查询引擎
- **Metad**: 元数据管理
- **Storaged**: 图数据存储引擎
## 连接 NebulaGraph
使用 Nebula Console 连接:
```bash
# 安装 nebula-console
# 连接到集群
./nebula-console -addr 127.0.0.1 -port 9669 -u root -p nebula
```
## 图数据模型
NebulaGraph 使用:
- **顶点**: 表示实体
- **边**: 表示关系
- **标签**: 定义顶点类型
- **边类型**: 定义关系类型
## 卸载
卸载 NebulaGraph
```bash
make uninstall
```
+53
View File
@@ -0,0 +1,53 @@
# NebulaGraph Cluster Configuration
# https://github.com/vesoft-inc/nebula-operator
# Cluster name
nameOverride: nebula
# NebulaGraph version
nebula:
version: v3.6.0
# Graphd configuration (query engine)
graphd:
replicas: 3
resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: 1000m
memory: 1Gi
service:
type: ClusterIP
# Metad configuration (metadata service)
metad:
replicas: 3
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
storage:
size: 10Gi
# Storaged configuration (storage engine)
storaged:
replicas: 3
resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: 1000m
memory: 1Gi
storage:
size: 50Gi
# Reference to existing nebula-operator
operator:
name: nebula-operator
namespace: nebula-operator