Skip to content

Commit

Permalink
docs: update cd cv to cmpd and cmpv
Browse files Browse the repository at this point in the history
  • Loading branch information
michelle-0808 committed Jan 20, 2025
1 parent 3dd6b4e commit 295c063
Show file tree
Hide file tree
Showing 12 changed files with 154 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,29 @@ This tutorial shows how to create and connect to an ApeCloud MySQL cluster.
Make sure the `apecloud-mysql` cluster definition is installed.

```bash
kubectl get clusterdefinition apecloud-mysql
kubectl get componentdefinition | grep apecloud-mysql
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
apecloud-mysql Available 85m
NAME SERVICE SERVICE-VERSION STATUS AGE
apecloud-mysql-1.0.0 mysql 8.0.30 Available 13m
```

View all available versions for creating a cluster.

```bash
kubectl get clusterversions -l clusterdefinition.kubeblocks.io/name=apecloud-mysql
kubectl get componentversions | grep apecloud-mysql
>
NAME CLUSTER-DEFINITION STATUS AGE
ac-mysql-8.0.30 apecloud-mysql Available 85m
NAME VERSIONS STATUS AGE
apecloud-mysql 8.0.30 Available 15m
```

</TabItem>

<TabItem value="kbcli" label="kbcli">

```bash
kbcli clusterdefinition list
kbcli componentdefinition list | grep apecloud-mysql

kbcli clusterversion list
kbcli componentversion list | grep apecloud-mysql
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,27 @@ This tutorial shows how to create and connect to a MongoDB cluster.
<TabItem value="kubectl" label="kubectl" default>

```bash
kubectl get clusterdefinition mongodb
kubectl get componentdefinition | grep mongodb
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
mongodb Available 23m
NAME SERVICE SERVICE-VERSION STATUS AGE
mongodb-1.0.0 mongodb 5.0.14 Available 18m
```

```bash
kubectl get clusterversions -l clusterdefinition.kubeblocks.io/name=mongodb
kubectl get componentversions | grep mongodb
>
NAME VERSIONS STATUS AGE
mongodb 7.0.12,6.0.16,5.0.28,4.4.29,4.2.24,4.0.28 Available 19m
```

</TabItem>

<TabItem value="kbcli" label="kbcli">

```bash
kbcli clusterdefinition list
kbcli componentdefinition list | grep mongodb

kbcli clusterversion list
kbcli componentversion list | grep mongodb
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,32 @@ This tutorial shows how to create and connect to a MySQL cluster.
Make sure the `mysql` cluster definition is installed.

```bash
kubectl get clusterdefinition mysql
kubectl get componentdefinition | grep mysql
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
mysql Available 85m
NAME SERVICE SERVICE-VERSION STATUS AGE
mysql-5.7-1.0.0-alpha.0 mysql 5.7.44 Available 18m
mysql-8.0-1.0.0-alpha.0 mysql 8.0.33 Available 18m
mysql-8.4-1.0.0-alpha.0 mysql 8.4.2 Available 18m
mysql-proxysql-1.0.0-alpha.0 proxysql 2.4.4 Available 18m
```

View all available versions for creating a cluster.

```bash
kubectl get clusterversions -l clusterdefinition.kubeblocks.io/name=mysql
kubectl get componentversions | grep mysql
>
NAME CLUSTER-DEFINITION STATUS AGE
mysql-5.7.44 mysql Available 27h
mysql-8.0.33 mysql Available 27h
mysql-8.4.2 mysql Available 27h
NAME VERSIONS STATUS AGE
mysql 8.4.2,8.4.1,8.4.0,8.0.39,8.0.38,8.0.37,8.0.36,8.0.35,8.0.34,8.0.33,8.0.32,8.0.31,8.0.30,5.7.44 Available 23m
```

</TabItem>

<TabItem value="kbcli" label="kbcli">

```bash
kbcli clusterdefinition list
kbcli clusterversion list
kbcli componentdefinition list | grep mysql

kbcli componentversion list | grep mysql
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,32 @@ This tutorial shows how to create and connect to a PostgreSQL cluster.
<TabItem value="kubectl" label="kubectl" default>

```bash
kubectl get clusterdefinition postgresql
kubectl get componentdefinition | grep postgresql
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
postgresql Available 30m
NAME SERVICE SERVICE-VERSION STATUS AGE
postgresql-12-1.0.0-alpha.0 postgresql 12.15.0 Available 27m
postgresql-14-1.0.0-alpha.0 postgresql 14.8.0 Available 27m
postgresql-15-1.0.0-alpha.0 postgresql 15.7.0 Available 27m
postgresql-16-1.0.0-alpha.0 postgresql 16.4.0 Available 27m
```

View all available versions for creating a cluster.

```bash
kubectl get clusterversions -l clusterdefinition.kubeblocks.io/name=postgresql
kubectl get componentversions | grep postgresql
>
NAME CLUSTER-DEFINITION STATUS AGE
postgresql-12.14.0 postgresql Available 30m
postgresql-12.14.1 postgresql Available 30m
postgresql-12.15.0 postgresql Available 30m
postgresql-14.7.2 postgresql Available 30m
postgresql-14.8.0 postgresql Available 30m
postgresql-15.7.0 postgresql Available 30m
postgresql-16.4.0 postgresql Available 30m
NAME VERSIONS STATUS AGE
postgresql 16.4.0,15.7.0,14.8.0,14.7.2,12.15.0,12.14.1,12.14.0 Available 28m
```

</TabItem>

<TabItem value="kbcli" label="kbcli">

```bash
kbcli clusterdefinition list
kbcli clusterversion list
kbcli componentdefinition list | grep postgresql

kbcli componentversion list | grep postgresql
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,42 @@ Refer to the [Pulsar official document](https://pulsar.apache.org/docs/3.1.x/) f
<TabItem value="kubectl" label="kubectl" default>

```bash
kubectl get clusterdefinition pulsar
kubectl get componentdefinition | grep pulsar
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
pulsar pulsar-basic-cluster,pulsar-enhanced-cluster Available 16m
NAME SERVICE SERVICE-VERSION STATUS AGE
pulsar-bookies-recovery-2-1.0.0-alpha.0 pulsar 2.11.2 Available 108s
pulsar-bookies-recovery-3-1.0.0-alpha.0 pulsar 3.0.2 Available 108s
pulsar-bookkeeper-2-1.0.0-alpha.0 pulsar 2.11.2 Available 108s
pulsar-bookkeeper-3-1.0.0-alpha.0 pulsar 3.0.2 Available 108s
pulsar-broker-2-1.0.0-alpha.0 pulsar 2.11.2 Available 108s
pulsar-broker-3-1.0.0-alpha.0 pulsar 3.0.2 Available 108s
pulsar-proxy-2-1.0.0-alpha.0 pulsar 2.11.2 Available 108s
pulsar-proxy-3-1.0.0-alpha.0 pulsar 3.0.2 Available 108s
pulsar-zookeeper-2-1.0.0-alpha.0 pulsar 2.11.2 Available 108s
pulsar-zookeeper-3-1.0.0-alpha.0 pulsar 3.0.2 Available 108s
```

View all available versions for creating a cluster.

```bash
kubectl get clusterversions -l clusterdefinition.kubeblocks.io/name=pulsar
kubectl get componentversion | grep pulsar
>
NAME CLUSTER-DEFINITION STATUS AGE
pulsar-2.11.2 pulsar Available 16m
pulsar-3.0.2 pulsar Available 16m
NAME VERSIONS STATUS AGE
pulsar-bookies-recovery 3.0.2,2.11.2 Available 2m46s
pulsar-bookkeeper 3.0.2,2.11.2 Available 2m46s
pulsar-broker 3.0.2,2.11.2 Available 2m46s
pulsar-proxy 3.0.2,2.11.2 Available 2m46s
pulsar-zookeeper 3.0.2,2.11.2 Available 2m46s
```

</TabItem>

<TabItem value="kbcli" label="kbcli">

```bash
kbcli clusterdefinition list
kbcli clusterversion list
kbcli componentdefinition list | grep pulsar

kbcli componentversion list | grep pulsar
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,35 +56,33 @@ This tutorial shows how to create and connect to a Redis cluster.
<TabItem value="kubectl" label="kubectl" default>

```bash
kubectl get clusterdefinition redis
kubectl get componentdefinition | grep redis
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
redis replication,replication-twemproxy,standalone Available 16m
NAME SERVICE SERVICE-VERSION STATUS AGE
redis-7-1.0.0-alpha.0 redis 7.2.4 Available 44m
redis-cluster-7-1.0.0-alpha.0 redis-cluster 7.2.4 Available 44m
redis-sentinel-7-1.0.0-alpha.0 redis-sentinel 7.2.4 Available 44m
redis-twemproxy-0.5-1.0.0-alpha.0 redis-twemproxy 0.5.0 Available 44m
```

```bash
kubectl get clusterversions -l clusterdefinition.kubeblocks.io/name=redis
kubectl get componentversion | grep redis
>
NAME CLUSTER-DEFINITION STATUS AGE
redis-7.0.6 redis Available 16m
redis-7.2.4 redis Available 16m
NAME VERSIONS STATUS AGE
redis 7.2.4,7.0.6 Available 45m
redis-cluster 7.2.4,7.0.6 Available 45m
redis-sentinel 7.2.4,7.0.6 Available 45m
redis-twemproxy 0.5.0 Available 45m
```

</TabItem>

<TabItem value="kbcli" label="kbcli">

```bash
kbcli clusterdefinition list
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
redis replication,replication-twemproxy,standalone Available 16m
kbcli componentdefinition list | grep redis

kbcli clusterversion list
>
NAME CLUSTER-DEFINITION STATUS IS-DEFAULT CREATED-TIME
redis-7.0.6 redis Available false Sep 27,2024 11:36 UTC+0800
redis-7.2.4 redis Available false Sep 27,2024 11:36 UTC+0800
kbcli componentversion list | grep redis
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,29 @@ import TabItem from '@theme/TabItem';
确认 `apecloud-mysql` cluster definition 是否已安装。

```bash
kubectl get clusterdefinition apecloud-mysql
kubectl get componentdefinition | grep apecloud-mysql
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
apecloud-mysql Available 85m
NAME SERVICE SERVICE-VERSION STATUS AGE
apecloud-mysql-1.0.0 mysql 8.0.30 Available 13m
```

查看可用于创建集群的版本。

```bash
kubectl get clusterversions -l clusterdefinition.kubeblocks.io/name=apecloud-mysql
kubectl get componentversions | grep apecloud-mysql
>
NAME CLUSTER-DEFINITION STATUS AGE
ac-mysql-8.0.30 apecloud-mysql Available 85m
NAME VERSIONS STATUS AGE
apecloud-mysql 8.0.30 Available 15m
```

</TabItem>

<TabItem value="kbcli" label="kbcli">

```bash
kbcli clusterdefinition list
kbcli componentdefinition list | grep apecloud-mysql

kbcli clusterversion list
kbcli componentversion list | grep apecloud-mysql
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,27 @@ import TabItem from '@theme/TabItem';
<TabItem value="kubectl" label="kubectl" default>

```bash
kubectl get clusterdefinition mongodb
kubectl get componentdefinition | grep mongodb
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
mongodb Available 23m
NAME SERVICE SERVICE-VERSION STATUS AGE
mongodb-1.0.0 mongodb 5.0.14 Available 18m
```

```bash
kubectl get clusterversions -l clusterdefinition.kubeblocks.io/name=mongodb
kubectl get componentversions | grep mongodb
>
NAME VERSIONS STATUS AGE
mongodb 7.0.12,6.0.16,5.0.28,4.4.29,4.2.24,4.0.28 Available 19m
```

</TabItem>

<TabItem value="kbcli" label="kbcli">

```bash
kbcli clusterdefinition list
kbcli componentdefinition list | grep apecloud-mysql

kbcli clusterversion list
kbcli componentversion list | grep apecloud-mysql
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,32 @@ import TabItem from '@theme/TabItem';
确保 `mysql` cluster definition 已安装。

```bash
kubectl get clusterdefinition mysql
kubectl get componentdefinition | grep mysql
>
NAME TOPOLOGIES SERVICEREFS STATUS AGE
mysql Available 85m
NAME SERVICE SERVICE-VERSION STATUS AGE
mysql-5.7-1.0.0-alpha.0 mysql 5.7.44 Available 18m
mysql-8.0-1.0.0-alpha.0 mysql 8.0.33 Available 18m
mysql-8.4-1.0.0-alpha.0 mysql 8.4.2 Available 18m
mysql-proxysql-1.0.0-alpha.0 proxysql 2.4.4 Available 18m
```

查看可用的集群版本。

```bash
kubectl get clusterversions -l clusterdefinition.kubeblocks.io/name=mysql
kubectl get componentversions | grep mysql
>
NAME CLUSTER-DEFINITION STATUS AGE
mysql-5.7.44 mysql Available 27h
mysql-8.0.33 mysql Available 27h
mysql-8.4.2 mysql Available 27h
NAME VERSIONS STATUS AGE
mysql 8.4.2,8.4.1,8.4.0,8.0.39,8.0.38,8.0.37,8.0.36,8.0.35,8.0.34,8.0.33,8.0.32,8.0.31,8.0.30,5.7.44 Available 23m
```

</TabItem>

<TabItem value="kbcli" label="kbcli">

```bash
kbcli clusterdefinition list
kbcli clusterversion list
kbcli componentdefinition list | grep mysql

kbcli componentversion list | grep mysql
```

</TabItem>
Expand Down
Loading

0 comments on commit 295c063

Please sign in to comment.