Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add shortcut for qdrant #395

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ build-kbcli-embed-chart: helmtool fetch-addons create-kbcli-embed-charts-dir \
build-single-kbcli-embed-chart.mongodb-cluster \
build-single-kbcli-embed-chart.llm-cluster \
build-single-kbcli-embed-chart.xinference-cluster \
build-single-kbcli-embed-chart.elasticsearch-cluster
build-single-kbcli-embed-chart.elasticsearch-cluster \
build-single-kbcli-embed-chart.qdrant-cluster

.PHONY: kbcli
kbcli: build-checks kbcli-fast ## Build bin/kbcli.
Expand Down
1 change: 1 addition & 0 deletions docs/user_docs/cli/kbcli_cluster_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ kbcli cluster create [NAME] [flags]
* [kbcli cluster create mongodb](kbcli_cluster_create_mongodb.md) - Create a mongodb cluster.
* [kbcli cluster create mysql](kbcli_cluster_create_mysql.md) - Create a mysql cluster.
* [kbcli cluster create postgresql](kbcli_cluster_create_postgresql.md) - Create a postgresql cluster.
* [kbcli cluster create qdrant](kbcli_cluster_create_qdrant.md) - Create a qdrant cluster.
* [kbcli cluster create redis](kbcli_cluster_create_redis.md) - Create a redis cluster.
* [kbcli cluster create xinference](kbcli_cluster_create_xinference.md) - Create a xinference cluster.

Expand Down
10 changes: 5 additions & 5 deletions docs/user_docs/cli/kbcli_cluster_create_qdrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ kbcli cluster create qdrant NAME [flags]

```
--availability-policy string The availability policy of cluster. Legal values [none, node, zone]. (default "node")
--cpu float CPU cores. Value range [0.5, 64]. (default 0.5)
--cpu float CPU cores. Value range [0.5, 64]. (default 1)
--disable-exporter Enable or disable monitor. (default true)
-h, --help help for qdrant
--host-network-accessible Specify whether the cluster can be accessed from within the VPC.
--memory float Memory, the unit is Gi. Value range [0.5, 1000]. (default 2)
--mode string Cluster topology mode. Legal values [standalone, replication]. (default "standalone")
--monitoring-interval int The monitoring interval of cluster, 0 is disabled, the unit is second. Value range [0, 60].
--publicly-accessible Specify whether the cluster can be accessed from the public internet.
--rbac-enabled Specify whether rbac resources will be created by client, otherwise KubeBlocks server will try to create rbac resources.
--replicas int The number of replicas, for standalone mode, the replicas is 1, for replication mode, the default replicas is 2. Value range [1, 5]. (default 1)
--replicas int The number of replicas. Value range [1, 16]. (default 1)
--service-version string The version of Qdrant. (default "1.10.1")
--storage float Storage size, the unit is Gi. Value range [1, 10000]. (default 20)
--storage-class-name string Storage class name of the data volume
--tenancy string The tenancy of cluster. Legal values [SharedNode, DedicatedNode]. (default "SharedNode")
--termination-policy string The termination policy of cluster. Legal values [DoNotTerminate, Halt, Delete, WipeOut]. (default "Delete")
--version string Cluster version.
```

### Options inherited from parent commands
Expand Down
8 changes: 8 additions & 0 deletions pkg/cluster/builtin_charts.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ var (
xinferenceChart embed.FS
//go:embed charts/elasticsearch-cluster.tgz
elasticsearchChart embed.FS
//go:embed charts/qdrant-cluster.tgz
qdrantChart embed.FS
)

var builtinClusterTypes = map[ClusterType]bool{}
Expand Down Expand Up @@ -139,6 +141,12 @@ func init() {
name: "elasticsearch-cluster.tgz",
alias: "",
},

"qdrant": {
chartFS: qdrantChart,
name: "qdrant-cluster.tgz",
alias: "",
},
}

for k, v := range embedChartConfigs {
Expand Down
Binary file modified pkg/cluster/charts/apecloud-mysql-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/mongodb-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/mysql-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/postgresql-cluster.tgz
Binary file not shown.
Binary file added pkg/cluster/charts/qdrant-cluster.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/xinference-cluster.tgz
Binary file not shown.
Loading