morningman commented on code in PR #17318:
URL: https://github.com/apache/doris/pull/17318#discussion_r1147325736
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
Review Comment:
```suggestion
<version since="dev"></version>
```
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
+
+## 环境准备
+
+- 安装 k8s
+- 构建或下载doris镜像
+ - 构建镜像 [Doris Docker 快速搭建开发环境](./docker-dev)
+ - 下载镜像 https://hub.docker.com/r/apache/doris/tags
+- 创建或下载doris on k8s的yml文件
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_be.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_cn.yml
+
+## 启动集群
+启动follower: kubectl create -f doris_follower.yml
Review Comment:
```suggestion
启动 FE(角色类型为 Follower): kubectl create -f doris_follower.yml
```
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
+
+## 环境准备
+
+- 安装 k8s
+- 构建或下载doris镜像
+ - 构建镜像 [Doris Docker 快速搭建开发环境](./docker-dev)
+ - 下载镜像 https://hub.docker.com/r/apache/doris/tags
+- 创建或下载doris on k8s的yml文件
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_be.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_cn.yml
+
+## 启动集群
+启动follower: kubectl create -f doris_follower.yml
+
+启动backend: kubectl create -f doris_be.yml
+
+启动backend_cn: kubectl create -f doris_cn.yml
Review Comment:
```suggestion
启动 BE(角色类型为 Compute Node): kubectl create -f doris_cn.yml
```
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
+
+## 环境准备
+
+- 安装 k8s
+- 构建或下载doris镜像
+ - 构建镜像 [Doris Docker 快速搭建开发环境](./docker-dev)
+ - 下载镜像 https://hub.docker.com/r/apache/doris/tags
+- 创建或下载doris on k8s的yml文件
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_be.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_cn.yml
+
+## 启动集群
+启动follower: kubectl create -f doris_follower.yml
+
+启动backend: kubectl create -f doris_be.yml
+
+启动backend_cn: kubectl create -f doris_cn.yml
+
+## 扩缩容
+
+- fe_follower
+ - 目前不支持扩缩容,建议按需初始化1个或者3个节点
+- backend
Review Comment:
```suggestion
- BE
```
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
+
+## 环境准备
+
+- 安装 k8s
+- 构建或下载doris镜像
+ - 构建镜像 [Doris Docker 快速搭建开发环境](./docker-dev)
+ - 下载镜像 https://hub.docker.com/r/apache/doris/tags
+- 创建或下载doris on k8s的yml文件
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_be.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_cn.yml
+
+## 启动集群
+启动follower: kubectl create -f doris_follower.yml
+
+启动backend: kubectl create -f doris_be.yml
+
+启动backend_cn: kubectl create -f doris_cn.yml
+
+## 扩缩容
+
+- fe_follower
+ - 目前不支持扩缩容,建议按需初始化1个或者3个节点
+- backend
+ - 命令:kubectl scale statefulset doris-be-cluster1 --replicas=4
+- backend_cn
Review Comment:
```suggestion
- BE(Compute Node)
```
##########
docs/zh-CN/docs/admin-manual/cluster-management/fqdn.md:
##########
@@ -0,0 +1,88 @@
+---
+{
+"title": "FQDN",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+# FQDN
+
+## 概念介绍
+
+<version since="dev">
+
+完全限定域名fully qualified domain name(FQDN)是internet上特定计算机或主机的完整域名。
+
+Doris支持FQDN之后,添加各类节点时可以直接指定域名,例如添加be节点的命令为ALTER SYSTEM ADD BACKEND
"be_host:heartbeat_service_port",
+
+"be_host"此前是be节点的ip,启动fqdn后,be_host应指定be节点的域名。
Review Comment:
统一大写:FQDN。
命令统一用反引号 `` 包裹。
##########
docs/zh-CN/docs/admin-manual/cluster-management/fqdn.md:
##########
@@ -0,0 +1,88 @@
+---
+{
+"title": "FQDN",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+# FQDN
+
+## 概念介绍
+
+<version since="dev">
+
+完全限定域名fully qualified domain name(FQDN)是internet上特定计算机或主机的完整域名。
+
+Doris支持FQDN之后,添加各类节点时可以直接指定域名,例如添加be节点的命令为ALTER SYSTEM ADD BACKEND
"be_host:heartbeat_service_port",
+
+"be_host"此前是be节点的ip,启动fqdn后,be_host应指定be节点的域名。
+
+Doris支持FQDN目前主要有两个作用,一是在k8s上部署,二是服务器切换网卡。
+
+</version>
+
+## 前置条件
+
+1. fe.conf 文件 设置 enable_fqdn_mode = true
Review Comment:
```suggestion
1. fe.conf 文件 设置 `enable_fqdn_mode = true`
```
##########
docs/zh-CN/docs/admin-manual/cluster-management/fqdn.md:
##########
@@ -0,0 +1,88 @@
+---
+{
+"title": "FQDN",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+# FQDN
+
+## 概念介绍
+
+<version since="dev">
+
+完全限定域名fully qualified domain name(FQDN)是internet上特定计算机或主机的完整域名。
+
+Doris支持FQDN之后,添加各类节点时可以直接指定域名,例如添加be节点的命令为ALTER SYSTEM ADD BACKEND
"be_host:heartbeat_service_port",
+
+"be_host"此前是be节点的ip,启动fqdn后,be_host应指定be节点的域名。
+
+Doris支持FQDN目前主要有两个作用,一是在k8s上部署,二是服务器切换网卡。
Review Comment:
这句话可以删掉。后面最佳实践就行了
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
+
+## 环境准备
+
+- 安装 k8s
+- 构建或下载doris镜像
+ - 构建镜像 [Doris Docker 快速搭建开发环境](./docker-dev)
+ - 下载镜像 https://hub.docker.com/r/apache/doris/tags
+- 创建或下载doris on k8s的yml文件
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_be.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_cn.yml
+
+## 启动集群
+启动follower: kubectl create -f doris_follower.yml
+
+启动backend: kubectl create -f doris_be.yml
Review Comment:
```suggestion
启动 BE: kubectl create -f doris_be.yml
```
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
+
+## 环境准备
+
+- 安装 k8s
+- 构建或下载doris镜像
+ - 构建镜像 [Doris Docker 快速搭建开发环境](./docker-dev)
+ - 下载镜像 https://hub.docker.com/r/apache/doris/tags
+- 创建或下载doris on k8s的yml文件
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_be.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_cn.yml
+
+## 启动集群
+启动follower: kubectl create -f doris_follower.yml
+
+启动backend: kubectl create -f doris_be.yml
+
+启动backend_cn: kubectl create -f doris_cn.yml
+
+## 扩缩容
+
+- fe_follower
+ - 目前不支持扩缩容,建议按需初始化1个或者3个节点
+- backend
+ - 命令:kubectl scale statefulset doris-be-cluster1 --replicas=4
+- backend_cn
+ - 命令:kubectl scale statefulset doris-cn-cluster1 --replicas=4
+
+## 验证
+
+使用 mysql-client 连接到 FE,执行 show backends,show frontends等操作查看各节点状态
+
+## k8s简易操作命令
+
+- 首次执行yml文件 kubectl create -f xxx.yml
Review Comment:
```suggestion
- 首次执行yml文件: `kubectl create -f xxx.yml`
```
如下统一格式
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
+
+## 环境准备
+
+- 安装 k8s
+- 构建或下载doris镜像
+ - 构建镜像 [Doris Docker 快速搭建开发环境](./docker-dev)
+ - 下载镜像 https://hub.docker.com/r/apache/doris/tags
+- 创建或下载doris on k8s的yml文件
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_be.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_cn.yml
+
+## 启动集群
+启动follower: kubectl create -f doris_follower.yml
+
+启动backend: kubectl create -f doris_be.yml
+
+启动backend_cn: kubectl create -f doris_cn.yml
+
+## 扩缩容
+
+- fe_follower
Review Comment:
```suggestion
- FE
```
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
+
+## 环境准备
+
+- 安装 k8s
+- 构建或下载doris镜像
+ - 构建镜像 [Doris Docker 快速搭建开发环境](./docker-dev)
+ - 下载镜像 https://hub.docker.com/r/apache/doris/tags
+- 创建或下载doris on k8s的yml文件
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_be.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_cn.yml
+
+## 启动集群
+启动follower: kubectl create -f doris_follower.yml
+
+启动backend: kubectl create -f doris_be.yml
+
+启动backend_cn: kubectl create -f doris_cn.yml
+
+## 扩缩容
+
+- fe_follower
+ - 目前不支持扩缩容,建议按需初始化1个或者3个节点
+- backend
+ - 命令:kubectl scale statefulset doris-be-cluster1 --replicas=4
+- backend_cn
+ - 命令:kubectl scale statefulset doris-cn-cluster1 --replicas=4
+
+## 验证
+
+使用 mysql-client 连接到 FE,执行 show backends,show frontends等操作查看各节点状态
+
+## k8s简易操作命令
+
+- 首次执行yml文件 kubectl create -f xxx.yml
+- 修改yml文件后执行 kubectl apply -f xxx.yml
+- 删除yml定义的所有资源 kubectl delete -f xxx.yml
+- 查看pod列表 kubectl get pods
+- 进入容器 kubectl exec -it xxx(podName) -- /bin/sh
+- 查看日志 kubectl logs xxx(podName)
+- 查看ip和端口信息 kubectl get ep
+- [更多k8s知识](https://kubernetes.io)
+
+## 常见问题
+
+- 数据怎么持久化?
+
+ 用户需要自行挂载pvc,持久化元数据信息,数据信息或者日志信息等
+- 怎么安全缩容be节点?
Review Comment:
```suggestion
- 怎么安全缩容 BE 节点?
```
统一所有名称:FE、BE、BE(Compute Node)
##########
docs/zh-CN/docs/admin-manual/cluster-management/fqdn.md:
##########
@@ -0,0 +1,88 @@
+---
+{
+"title": "FQDN",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+# FQDN
+
+## 概念介绍
+
+<version since="dev">
Review Comment:
```suggestion
<version since="dev"></version>
```
直接写在一行就行
##########
docs/zh-CN/docs/admin-manual/cluster-management/fqdn.md:
##########
@@ -0,0 +1,88 @@
+---
+{
+"title": "FQDN",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+# FQDN
+
+## 概念介绍
+
+<version since="dev">
+
+完全限定域名fully qualified domain name(FQDN)是internet上特定计算机或主机的完整域名。
+
+Doris支持FQDN之后,添加各类节点时可以直接指定域名,例如添加be节点的命令为ALTER SYSTEM ADD BACKEND
"be_host:heartbeat_service_port",
+
+"be_host"此前是be节点的ip,启动fqdn后,be_host应指定be节点的域名。
+
+Doris支持FQDN目前主要有两个作用,一是在k8s上部署,二是服务器切换网卡。
+
+</version>
+
+## 前置条件
+
+1. fe.conf 文件 设置 enable_fqdn_mode = true
+2. fe节点都能解析出doris所有节点的域名
+
+## 最佳实践
+
+### k8s部署doris
+
+pod意外重启后,k8s不能保证pod的ip不发生变化,但是能保证域名不变,基于这一特性,doris开启fqdn时,能保证pod意外重启后,还能正常提供服务。
+
+k8s部署doris的方法请参考[K8s部署doris](../../../community/developer-guide/k8s-deploy.md)
+
+### 服务器切换网卡
+
+例如有一个be节点的服务器有两个网卡,对应的ip分别为192.192.192.2和10.10.10.3,目前用192.192.192.2对应的网卡,可以按照下述步骤操作:
+
+1. 在fe所在机器的etc/hosts文件增加一行 192.192.192.2 be1_fqdn
Review Comment:
```suggestion
1. 在fe所在机器的`etc/hosts`文件增加一行 `192.192.192.2 be1_fqdn`
```
其他地方类似
##########
docs/zh-CN/community/developer-guide/k8s-deploy.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "K8s部署doris",
+"language": "zh-CN"
+}
+
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<version since="dev">
+
+# K8s部署doris
+
+</version>
+
+## 环境准备
+
+- 安装 k8s
+- 构建或下载doris镜像
+ - 构建镜像 [Doris Docker 快速搭建开发环境](./docker-dev)
+ - 下载镜像 https://hub.docker.com/r/apache/doris/tags
+- 创建或下载doris on k8s的yml文件
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_be.yml
+ -
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_cn.yml
+
+## 启动集群
+启动follower: kubectl create -f doris_follower.yml
+
+启动backend: kubectl create -f doris_be.yml
+
+启动backend_cn: kubectl create -f doris_cn.yml
+
+## 扩缩容
+
+- fe_follower
+ - 目前不支持扩缩容,建议按需初始化1个或者3个节点
+- backend
+ - 命令:kubectl scale statefulset doris-be-cluster1 --replicas=4
+- backend_cn
+ - 命令:kubectl scale statefulset doris-cn-cluster1 --replicas=4
+
+## 验证
+
+使用 mysql-client 连接到 FE,执行 show backends,show frontends等操作查看各节点状态
Review Comment:
```suggestion
使用 mysql-client 连接到 FE,执行 `show backends`,`show frontends` 等操作查看各节点状态
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]