From 4ae3971460bf5d71b471a151a5ae5327bd595673 Mon Sep 17 00:00:00 2001 From: hongming Date: Tue, 22 Apr 2025 19:52:02 +0800 Subject: [PATCH] Update 03-upgrade-kubesphere-from-v3.4.x.adoc (#3257) Signed-off-by: hongming --- .../03-upgrade-kubesphere-from-v3.4.x.adoc | 7 +++++++ .../03-upgrade-kubesphere-from-v3.4.x.adoc | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/content/en/docs/v4.1/03-installation-and-upgrade/03-upgrade-kubesphere/03-upgrade-kubesphere-from-v3.4.x.adoc b/content/en/docs/v4.1/03-installation-and-upgrade/03-upgrade-kubesphere/03-upgrade-kubesphere-from-v3.4.x.adoc index 632d72837..217296a94 100644 --- a/content/en/docs/v4.1/03-installation-and-upgrade/03-upgrade-kubesphere/03-upgrade-kubesphere-from-v3.4.x.adoc +++ b/content/en/docs/v4.1/03-installation-and-upgrade/03-upgrade-kubesphere/03-upgrade-kubesphere-from-v3.4.x.adoc @@ -142,6 +142,13 @@ kubectl get clusters.cluster.kubesphere.io -o json | jq 'd == Upgrade gateway +Before upgrading the Gateway, you need to wait for the Gateway extension to be successfully scheduled to the target cluster. Run the following command on the host cluster to check the scheduling status of the Gateway extension. + +[source,bash] +---- +kubectl get installplan gateway -o json | jq -r '["Cluster", "State"], (.status.clusterSchedulingStatuses | to_entries[] | [.key, .value.state]) | @tsv' | column -t +---- + Gateway upgrade will cause Nginx Ingress Controller to restart, resulting in service interruption for gateway-dependent services. Please perform upgrades during off-peak business hours. Before starting the upgrade, check the gateway instances and their status in the cluster using: diff --git a/content/zh/docs/v4.1/03-installation-and-upgrade/03-upgrade-kubesphere/03-upgrade-kubesphere-from-v3.4.x.adoc b/content/zh/docs/v4.1/03-installation-and-upgrade/03-upgrade-kubesphere/03-upgrade-kubesphere-from-v3.4.x.adoc index 9d8ec8641..d218ffc0b 100644 --- a/content/zh/docs/v4.1/03-installation-and-upgrade/03-upgrade-kubesphere/03-upgrade-kubesphere-from-v3.4.x.adoc +++ b/content/zh/docs/v4.1/03-installation-and-upgrade/03-upgrade-kubesphere/03-upgrade-kubesphere-from-v3.4.x.adoc @@ -141,6 +141,13 @@ kubectl get clusters.cluster.kubesphere.io -o json | jq 'd == 升级网关 +在升级网关之前,需要等待 Gateway 扩展组件成功调度到目标集群,在 host 集群执行以下命令检查 Gateway 扩展组件的调度状态。 + +[source,bash] +---- +kubectl get installplan gateway -o json | jq -r '["Cluster", "State"], (.status.clusterSchedulingStatuses | to_entries[] | [.key, .value.state]) | @tsv' | column -t +---- + 网关的升级会导致 Nginx Ingress Controller 重启,依赖网关提供的服务会产生中断,请在业务低峰期进行升级。 在开始升级前,请通过以下命令检查集群中部署的网关实例及状态: