Skip to content

Commit

Permalink
add deploy operator on k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
Alonexc committed Jan 5, 2024
1 parent 0106cf3 commit 66afdb1
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ This section of the guide will walk you through the deployment steps for EventMe
- [Run Demo with shell scripts](#4run-demo-with-shell-scripts-)
- [Run EventMesh-Operator](#run-eventmesh-operator)
- [Local source code run](#local-source-code-run)
- [Deploy Operator on k8s](#deploy-operator-on-k8s)

### Deployment EventMesh Store

Expand Down Expand Up @@ -574,6 +575,33 @@ eventmesh-runtime-0-a-0 1/1 Running 0 12m
make delete
```

#### Deploy Operator on k8s

1.Deploy operator
Run the following commands(To delete a deployment, simply replace `deploy` with `undeploy`):
```
make deploy
```

Run `kubectl get pods` to see the status of the deployed eventmesh-operator.
```
NAME READY STATUS RESTARTS AGE
eventmesh-operator-59c59f4f7b-nmmlm 1/1 Running 0 20s
```

2.Execute the following command to deploy runtime, connector(To delete, simply replace `create` with `delete`.).
```
make create
```

Run `kubectl get pods` to see if the deployment was successful.
```
NAME READY STATUS RESTARTS AGE
connector-rocketmq-0 1/1 Running 0 9s
eventmesh-operator-59c59f4f7b-nmmlm 1/1 Running 0 3m12s
eventmesh-runtime-0-a-0 1/1 Running 0 15s
```

## Contributing

Each contributor has played an important role in promoting the robust development of Apache EventMesh. We sincerely appreciate all contributors who have contributed code and documents.
Expand Down
28 changes: 28 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Apache EventMesh提供了许多功能来帮助用户实现他们的目标,以
- [测试](#4测试-)
- [运行EventMesh-Operator](#运行eventmesh-operator)
- [本地源码运行](#本地源码运行)
- [部署operator到k8s](#部署operator到k8s)

### 部署EventMesh Store

Expand Down Expand Up @@ -597,6 +598,33 @@ eventmesh-runtime-0-a-0 1/1 Running 0 12m
make delete
```

#### 部署operator到k8s

1.部署operator
运行以下命令部署(删除部署, 只需将 `deploy` 替换为 `undeploy`即可):
```
make deploy
```

运行 `kubectl get pods` 查看部署的eventmesh-operator状态.
```
NAME READY STATUS RESTARTS AGE
eventmesh-operator-59c59f4f7b-nmmlm 1/1 Running 0 20s
```

2.运行以下命令部署runtime、connector(删除部署, 只需将`create` 替换为 `delete`即可).
```
make create
```

运行 `kubectl get pods` 查看部署是否成功.
```
NAME READY STATUS RESTARTS AGE
connector-rocketmq-0 1/1 Running 0 9s
eventmesh-operator-59c59f4f7b-nmmlm 1/1 Running 0 3m12s
eventmesh-runtime-0-a-0 1/1 Running 0 15s
```

## 贡献

每个贡献者在推动 Apache EventMesh 的健康发展中都发挥了重要作用。我们真诚感谢所有为代码和文档作出贡献的贡献者。
Expand Down

0 comments on commit 66afdb1

Please sign in to comment.