-
Notifications
You must be signed in to change notification settings - Fork 242
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
Update QuickstartWithKubernetes Description #687
Merged
RongtongJin
merged 3 commits into
apache:new-official-website
from
Baiyelovecode:new-official-website
Aug 30, 2024
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
### QuickStart | ||
### Kubernetes helm 部署rocketmq | ||
本文介绍在kubernetesk环境下如何使用Helm快速部署一个单节点 RocketMQ-5.X 版本的服务,并完成简单的消息收发。 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kubernetes 部署 RocketMQ |
||
|
||
#### 前提条件 | ||
|
@@ -7,7 +7,7 @@ | |
- 已安装的 `Helm 3.7.0+ ` | ||
- 64位 `JDK 1.8+` | ||
|
||
#### 第一步:安装 Helm | ||
#### 1.安装 Helm | ||
|
||
确保你的系统上已经安装了 Helm: | ||
```bash | ||
|
@@ -19,17 +19,16 @@ $ helm version | |
$ curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | ||
``` | ||
|
||
#### 第二步:下载 RocketMQ Helm 仓库 | ||
#### 2.下载 RocketMQ Helm 仓库 | ||
|
||
使用 Helm chart 部署 RocketMQ: | ||
|
||
```bash | ||
$ cd /opt/helm/ | ||
$ helm pull oci://registry-1.docker.io/apache/rocketmq --version 0.0.1 | ||
$ tar -zxvf rocketmq-0.0.1.tgz | ||
``` | ||
|
||
#### 第三步:部署 RocketMQ | ||
#### 3.部署 RocketMQ | ||
使用 Helm chart 部署 RocketMQ: | ||
|
||
```yaml | ||
|
@@ -57,7 +56,7 @@ rocketmq-demo-nameserver-757877747b-k669k 1/1 Running 0 6h3 | |
rocketmq-demo-proxy-6c569bd457-wcg6g 1/1 Running 3 (6h2m ago) 6h3m 192.168.85.227 k8s-node01 <none> <none> | ||
``` | ||
|
||
#### 第四步:验证消息发送和接收 | ||
#### 4.验证消息发送和接收 | ||
使用JAVA SDK测试消息收发(由于本地网络和k8s网络不属于同一内网,需要将项目本地打包后放在远程运行,打包后将target目录下的jar包拷贝至至目标服务器上执行`java -jar jar包名称`),具体如下: | ||
|
||
1)IDEA中创建一个Java工程。 | ||
|
@@ -186,7 +185,7 @@ public class Consumer { | |
} | ||
``` | ||
|
||
#### 第五步:释放rocketmq资源 | ||
#### 5.释放rocketmq资源 | ||
``` bash | ||
#释放所有rocketmq资源 | ||
$ helm uninstall rocketmq-demo | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kubernetes 部署 RocketMQ