Skip to content

Commit 8e5bd3e

Browse files
committed
chore(k8s): refresh emqx-operator documentation
1 parent 9420f94 commit 8e5bd3e

24 files changed

+1147
-819
lines changed

dir.yaml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -141,33 +141,33 @@
141141
path: deploy/kubernetes/operator/tasks/overview
142142
collapsed: true
143143
children:
144-
- title_en: Configure License (Enterprise)
145-
title_cn: 配置 License (企业版)
146-
title_ja: Configure License (Enterprise)
144+
- title_en: Manage Enterprise License
145+
title_cn: 配置 License
146+
title_ja: Manage Enterprise License
147147
path: deploy/kubernetes/operator/tasks/configure-emqx-license
148-
- title_en: Enable TLS in EMQX
148+
- title_en: Enable TLS for Listeners
149149
title_cn: 在 EMQX 中开启 TLS
150-
title_ja: Enable TLS in EMQX
150+
title_ja: Enable TLS for Listeners
151151
path: deploy/kubernetes/operator/tasks/configure-emqx-tls
152-
- title_en: Change EMQX Configurations
152+
- title_en: Change EMQX Configuration
153153
title_cn: 修改 EMQX 配置
154-
title_ja: Change EMQX Configurations
154+
title_ja: Change EMQX Configuration
155155
path: deploy/kubernetes/operator/tasks/configure-emqx-config
156-
- title_en: Enable Core + Replicant Cluster
157-
title_cn: 配置 Core + Replica 集群
158-
title_ja: Enable Core + Replicant Cluster
156+
- title_en: Enable Core-Replicant Deployment
157+
title_cn: 配置 Core-Replicant 集群
158+
title_ja: Enable Core-Replicant Deployment
159159
path: deploy/kubernetes/operator/tasks/configure-emqx-core-replicant
160160
- title_en: Enable Persistence
161161
title_cn: 开启持久化
162162
title_ja: Enable Persistence
163163
path: deploy/kubernetes/operator/tasks/configure-emqx-persistence
164-
- title_en: Access EMQX Cluster by LoadBalancer
164+
- title_en: Access EMQX Cluster through LoadBalancer
165165
title_cn: 通过 LoadBalancer 访问 EMQX Cluster
166-
title_ja: Access EMQX Cluster by LoadBalancer
166+
title_ja: Access EMQX Cluster through LoadBalancer
167167
path: deploy/kubernetes/operator/tasks/configure-emqx-service
168-
- title_en: Configure Blue-Green Upgrade
168+
- title_en: Perform Blue-Green Upgrade
169169
title_cn: 配置蓝绿发布
170-
title_ja: Configure Blue-Green Upgrade
170+
title_ja: Perform Blue-Green Upgrade
171171
path: deploy/kubernetes/operator/tasks/configure-emqx-blueGreenUpdate
172172
- title_en: Collect EMQX Logs
173173
title_cn: 采集 EMQX 日志
@@ -181,15 +181,21 @@
181181
title_cn: 监控 EMQX 集群
182182
title_ja: Monitor EMQX Cluster
183183
path: deploy/kubernetes/operator/tasks/configure-emqx-prometheus
184-
- title_en: Load Balance EMQX Cluster
184+
- title_en: Rebalance Cluster Load
185185
title_cn: 负载均衡 EMQX 集群
186-
title_ja: Load Balance EMQX Cluster
186+
title_ja: Rebalance Cluster Load
187187
path: deploy/kubernetes/operator/tasks/configure-emqx-rebalance
188188
- title_en: Deploy EMQX Cluster in k8s with Restricted Access
189189
title_ja: Deploy EMQX Cluster in k8s with Restricted Access
190190
title_cn: 在受限的 k8s 环境中部署 EMQX 集群
191191
path: deploy/kubernetes/operator/tasks/configure-emqx-restricted-k8s
192-
- deploy/kubernetes/operator/api-reference
192+
- title_en: API Reference
193+
title_cn: API Reference
194+
title_ja: API Reference
195+
collapsed: true
196+
children:
197+
- title_en: apps.emqx.io/v2beta1
198+
path: deploy/kubernetes/operator/reference/v2beta1-reference
193199
- title_en: EMQX Helm Chart
194200
title_cn: EMQX Helm Chart
195201
title_ja: EMQX Helm Chart

en_US/deploy/kubernetes/operator/aws-eks.md

Lines changed: 40 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
# Deploy EMQX on Amazon Elastic Kubernetes Service
22

3-
EMQX Operator supports deploying EMQX on Amazon Container Service EKS (Elastic Kubernetes Service). Amazon EKS is a managed Kubernetes service that makes it easy to deploy, manage, and scale containerized applications. EKS provides the Kubernetes control plane and node groups, automatically handling node replacements, upgrades, and patching. It supports AWS services such as Load Balancers, RDS, and IAM, and integrates seamlessly with other Kubernetes ecosystem tools. For details, please see [What is Amazon EKS](https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html)
3+
EMQX Operator supports running on Amazon Container Service EKS (Elastic Kubernetes Service). Amazon EKS is a managed Kubernetes service that makes it easy to deploy, manage, and scale containerized applications. EKS provides the Kubernetes control plane and node groups, automatically handling node replacements, upgrades, and patching. It supports AWS services such as Load Balancers, RDS, and IAM, and integrates seamlessly with other Kubernetes ecosystem tools.
4+
5+
For a deeper introduction, please refer to [What is Amazon EKS](https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html).
46

57
## Before You Begin
68

79
Before you begin, you must have the following:
810

9-
- Activate Amazon Container Service and create an EKS cluster. For details, please refer to: [Create an Amazon EKS cluster](https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html)
11+
- Activate Amazon Container Service and create an EKS cluster.<br/>Please refer to [Create an Amazon EKS cluster](https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) for more details.
1012

11-
- Connect to EKS cluster by installing kubectl tool locally: For details, please refer to: [Using kubectl to connect to the cluster](https://docs.aws.amazon.com/eks/latest/userguide/getting-started-console.html#eks-configure-kubectl)
13+
- Connect to EKS cluster by installing kubectl tool locally.<br/>Refer to [Using kubectl to connect to the cluster](https://docs.aws.amazon.com/eks/latest/userguide/getting-started-console.html#eks-configure-kubectl) for more details.
1214

13-
- Deploy an AWS Load Balancer Controller on a cluster, for details, please refer to: [Create a Network Load Balancer](https://docs.aws.amazon.com/eks/latest/userguide/network-load-balancing.html)
15+
- Deploy an AWS Load Balancer Controller on a cluster.<br/>See [Create a Network Load Balancer](https://docs.aws.amazon.com/eks/latest/userguide/network-load-balancing.html) for more details.
1416

15-
- Install the Amazon EBS CSI driver on the cluster, for details, please refer to: [Amazon EBS CSI driver](https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html)
17+
- Install the Amazon EBS CSI driver on the cluster.<br/>See [Amazon EBS CSI driver](https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html) for further details.
1618

17-
- Install EMQX Operator: For details, please refer to: [Install EMQX Operator](./getting-started.md)
19+
- Install EMQX Operator.<br/>Please refer to [Install EMQX Operator](../getting-started/getting-started.md) for further details.
1820

19-
## Quickly Deploy an EMQX Cluster
21+
## Deploy EMQX Cluster Quickly
2022

21-
The following is the relevant configuration of EMQX custom resources.
23+
The following is the relevant configuration of an EMQX Custom Resource (CR).
2224

23-
+ Save the following content as a YAML file and deploy it via the `kubectl apply` command
25+
+ Save the following content as a YAML file and deploy it with `kubectl apply`.
2426

2527
```yaml
2628
# Configure EBS StorageClass with WaitForFirstConsumer binding mode
@@ -37,7 +39,7 @@ The following is the relevant configuration of EMQX custom resources.
3739
metadata:
3840
name: emqx
3941
spec:
40-
image: emqx/emqx-enterprise:@EE_VERSION@
42+
image: emqx/emqx:@EE_VERSION@
4143
config:
4244
data: |
4345
license {
@@ -77,37 +79,44 @@ The following is the relevant configuration of EMQX custom resources.
7779
loadBalancerClass: service.k8s.aws/nlb
7880
```
7981
80-
+ Wait for EMQX cluster to be ready, you can check the status of EMQX cluster through `kubectl get` command, please make sure that `STATUS` is `Running`, this may take some time
82+
+ Wait for EMQX cluster to become ready.
83+
84+
Check the status of EMQX cluster through `kubectl get` command, make sure that `STATUS` is `Ready`. This may take some time.
8185

8286
```bash
83-
$ kubectl get emqx emqx
84-
NAME IMAGE STATUS AGE
85-
emqx emqx/emqx-enterprise:@EE_VERSION@ Running 10m
87+
$ kubectl get emqx
88+
NAME STATUS AGE
89+
emqx Ready 55s
8690
```
8791

88-
+ Obtain Dashboard External IP of EMQX cluster and access EMQX console
92+
+ Obtain external IP of the EMQX Dashboard and access it.
8993

90-
EMQX Operator will create two EMQX Service resources, one is emqx-dashboard and the other is emqx-listeners, corresponding to EMQX console and EMQX listening port respectively.
94+
EMQX Operator will create a Service resource for the EMQX Dashboard according to the `dashboardServiceTemplate` configuration.
9195

9296
```bash
93-
$ kubectl get svc emqx-dashboard -o json | jq '.status.loadBalancer.ingress[0].ip'
94-
97+
$ kubectl get svc emqx-dashboard -o json | jq -r '.status.loadBalancer.ingress[0].ip'
9598
192.168.1.200
9699
```
97100

98-
Access `http://192.168.1.200:18083` through a browser, and use the default username and password `admin/public` to login EMQX console.
101+
Access `http://192.168.1.200:18083` through the browser.
102+
103+
Use the default username `admin` and password `public` to log into the EMQX Dashboard.
104+
105+
## Subscribe and Publish
99106

100-
## Use MQTTX application To Publish/Subscribe Messages
107+
+ Get [MQTTX CLI](https://mqttx.app/cli) ready.
101108

102-
[MQTTX CLI](https://mqttx.app/cli) is an open source MQTT 5.0 command line client tool, designed to help developers to more Quickly develop and debug MQTT services and applications.
109+
MQTTX CLI is an open source MQTT 5.0 command line client tool, designed to help developers to start using MQTT services and applications quickly.
103110

104-
+ Obtain External IP of EMQX cluster
111+
+ Obtain the external IP of the EMQX TCP listener.
112+
113+
EMQX Operator will create a respective Service resource for the configured listeners.
105114

106115
```bash
107-
external_ip=$(kubectl get svc emqx-listeners -o json | jq '.status.loadBalancer.ingress[0].ip')
116+
external_ip=$(kubectl get svc emqx-listeners -o json | jq -r '.status.loadBalancer.ingress[0].ip')
108117
```
109118

110-
+ Subscribe to news
119+
+ Subscribe to messages.
111120

112121
```bash
113122
$ mqttx sub -t 'hello' -h ${external_ip} -p 1883
@@ -118,7 +127,7 @@ The following is the relevant configuration of EMQX custom resources.
118127
[10:00:25] › ✔ Subscribed to hello
119128
```
120129

121-
+ create a new terminal window and publish message
130+
+ In a separate shell, connect to the EMQX cluster and publish a message.
122131

123132
```bash
124133
$ mqttx pub -t 'hello' -h ${external_ip} -p 1883 -m 'hello world'
@@ -129,15 +138,15 @@ The following is the relevant configuration of EMQX custom resources.
129138
[10:00:58] › ✔ Message published
130139
```
131140

132-
+ View messages received in the subscribed terminal window
141+
+ Observe the subscriber client receiving the message.
133142

134143
```bash
135144
[10:00:58] › payload: hello world
136145
```
137146

138-
## Terminate TLS Encryption With LoadBalancer
147+
## Terminate TLS Encryption with LoadBalancer
139148

140-
On Amazon EKS, you can use the NLB to do TLS termination, which you can do in the following steps:
149+
On Amazon EKS, you can use the NLB to terminate TLS encryption. Follow these steps:
141150

142151
1. Import relevant certificates in [AWS Console](https://us-east-2.console.aws.amazon.com/acm/home), then enter the details page by clicking the certificate ID, Then record the ARN information
143152

@@ -159,4 +168,6 @@ On Amazon EKS, you can use the NLB to do TLS termination, which you can do in th
159168
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "1883"
160169
```
161170

162-
> The value of `service.beta.kubernetes.io/aws-load-balancer-ssl-cert` is the ARN information we record in step 1.
171+
:::tip
172+
The value of `service.beta.kubernetes.io/aws-load-balancer-ssl-cert` is the ARN information recorded in step 1.
173+
:::

0 commit comments

Comments
 (0)