From 6a9cba802021da42c45719b61836a6836c1bed5c Mon Sep 17 00:00:00 2001 From: jialin Date: Thu, 9 Jul 2026 20:32:42 +0800 Subject: [PATCH] feat(clusters): warn about K8s version requirement on registration --- src/locales/en-US/clusters.ts | 2 ++ src/locales/ja-JP/clusters.ts | 2 ++ src/locales/ru-RU/clusters.ts | 2 ++ src/locales/tr-TR/clusters.ts | 2 ++ src/locales/zh-CN/clusters.ts | 2 ++ .../components/add-worker/k8s-run-command.tsx | 10 ++++++++++ 6 files changed, 20 insertions(+) diff --git a/src/locales/en-US/clusters.ts b/src/locales/en-US/clusters.ts index 2807d4ec..4f7e9ffc 100644 --- a/src/locales/en-US/clusters.ts +++ b/src/locales/en-US/clusters.ts @@ -44,6 +44,8 @@ export default { 'On the Worker that needs to be added, run the following command to join it to the cluster.', 'clusters.create.addCommand.k8s.tips': 'On the Kubernetes cluster that needs to be registered, run the following command to create the Kubernetes resources and register the cluster.', + 'clusters.create.addCommand.k8s.version.warning': + 'The minimum supported Kubernetes version is 1.23. To use the GPU Service feature, the minimum supported Kubernetes version is 1.27.', 'clusters.create.register.tips': 'On the Kubernetes cluster that needs to be added, run the following command to join its nodes to the cluster.', 'cluster.create.checkEnv.tips': diff --git a/src/locales/ja-JP/clusters.ts b/src/locales/ja-JP/clusters.ts index bdfe7891..a21a0c57 100644 --- a/src/locales/ja-JP/clusters.ts +++ b/src/locales/ja-JP/clusters.ts @@ -44,6 +44,8 @@ export default { 'On the Worker that needs to be added, run the following command to join it to the cluster.', 'clusters.create.addCommand.k8s.tips': '登録する Kubernetes クラスターで以下のコマンドを実行し、Kubernetes リソースを作成してクラスターを登録します。', + 'clusters.create.addCommand.k8s.version.warning': + 'サポートされる Kubernetes の最小バージョンは 1.23 です。GPU Service 機能を使用する場合、サポートされる Kubernetes の最小バージョンは 1.27 です。', 'cluster.create.checkEnv.tips': 'Use the following command to check if the environment is ready.', 'clusters.create.register.tips': diff --git a/src/locales/ru-RU/clusters.ts b/src/locales/ru-RU/clusters.ts index fde57157..b9ae377f 100644 --- a/src/locales/ru-RU/clusters.ts +++ b/src/locales/ru-RU/clusters.ts @@ -44,6 +44,8 @@ export default { 'На воркере, который необходимо добавить, выполните следующую команду, чтобы присоединить его к кластеру.', 'clusters.create.addCommand.k8s.tips': 'На Kubernetes-кластере, который необходимо зарегистрировать, выполните следующую команду, чтобы создать ресурсы Kubernetes и зарегистрировать этот кластер.', + 'clusters.create.addCommand.k8s.version.warning': + 'Минимальная поддерживаемая версия Kubernetes — 1.23. Для использования функции GPU Service минимальная поддерживаемая версия Kubernetes — 1.27.', 'cluster.create.checkEnv.tips': 'Используйте следующую команду для проверки готовности окружения', 'clusters.create.register.tips': diff --git a/src/locales/tr-TR/clusters.ts b/src/locales/tr-TR/clusters.ts index 31dc53be..799cd0bb 100644 --- a/src/locales/tr-TR/clusters.ts +++ b/src/locales/tr-TR/clusters.ts @@ -44,6 +44,8 @@ export default { 'Eklenmesi gereken İşçi Düğümde, kümeye katılması için aşağıdaki komutu çalıştırın.', 'clusters.create.addCommand.k8s.tips': 'Kaydedilmesi gereken Kubernetes kümesinde, Kubernetes kaynaklarını oluşturmak ve kümeyi kaydetmek için aşağıdaki komutu çalıştırın.', + 'clusters.create.addCommand.k8s.version.warning': + 'Desteklenen minimum Kubernetes sürümü 1.23’tür. GPU Service özelliğini kullanmak için desteklenen minimum Kubernetes sürümü 1.27’dir.', 'clusters.create.register.tips': 'Eklenmesi gereken Kubernetes kümesinde, düğümlerini kümeye katılması için aşağıdaki komutu çalıştırın.', 'cluster.create.checkEnv.tips': diff --git a/src/locales/zh-CN/clusters.ts b/src/locales/zh-CN/clusters.ts index b4a640d1..e948c066 100644 --- a/src/locales/zh-CN/clusters.ts +++ b/src/locales/zh-CN/clusters.ts @@ -43,6 +43,8 @@ export default { '在需要添加的节点上运行以下命令,将其加入到集群中。', 'clusters.create.addCommand.k8s.tips': '在需要注册的 Kubernetes 集群中运行以下命令,创建 Kubernetes 资源,注册该集群。', + 'clusters.create.addCommand.k8s.version.warning': + 'Kubernetes 版本最低支持 1.23,如果要使用 GPU Service 功能,Kubernetes 版本最低支持 1.27。', 'clusters.create.register.tips': '在需要添加的 Kubernetes 集群上运行以下命令,将其中的节点加入到集群中。', 'cluster.create.checkEnv.tips': '使用以下命令检查环境是否准备妥当。', diff --git a/src/pages/cluster-management/components/add-worker/k8s-run-command.tsx b/src/pages/cluster-management/components/add-worker/k8s-run-command.tsx index 2326126c..11dc3e53 100644 --- a/src/pages/cluster-management/components/add-worker/k8s-run-command.tsx +++ b/src/pages/cluster-management/components/add-worker/k8s-run-command.tsx @@ -1,3 +1,5 @@ +import { ExclamationCircleFilled } from '@ant-design/icons'; +import { AlertBlockInfo } from '@gpustack/core-ui'; import { useIntl } from '@umijs/max'; import { Typography } from 'antd'; import RegisterClusterInner from '../register-cluster-inner'; @@ -34,6 +36,14 @@ const K8sRunCommand: React.FC = ({ disabled }) => { id: 'clusters.create.addCommand.k8s.tips' })} + } + message={intl.formatMessage({ + id: 'clusters.create.addCommand.k8s.version.warning' + })} + >