mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
fix offline-install harbor
Signed-off-by: zhuxiujuan28 <562873187@qq.com>
This commit is contained in:
parent
bdbab62e19
commit
6e6183234b
|
|
@ -1,13 +1,11 @@
|
|||
---
|
||||
title: "持久卷声明"
|
||||
keywords: "Kubernetes, {ks_product}, 联邦项目, 存储, 持久卷声明"
|
||||
description: "介绍如何管理联邦项目中的持久卷声明。"
|
||||
title: "Persistent Volume Claims"
|
||||
keywords: "Kubernetes, {ks_product-en}, multi-cluster projects, storage, persistent volume claims"
|
||||
description: "Learn how to manage persistent volume claims in multi-cluster projects."
|
||||
weight: 04
|
||||
layout: "second"
|
||||
---
|
||||
|
||||
This section describes how to manage persistent volume claims.
|
||||
|
||||
|
||||
本节介绍如何管理持久卷声明。
|
||||
|
||||
系统根据持久卷声明中的参数,在后端存储系统中创建可供容器使用的存储区域,每个存储区域与{ks_product_both}平台上的一个持久卷对应。
|
||||
The system creates storage areas for containers in the backend storage system based on the parameters in the persistent volume claim, with each storage area corresponding to a persistent volume on the {ks_product-en} platform.
|
||||
|
|
@ -526,14 +526,7 @@ harbor 安装文件在 `/opt/harbor` 目录下,可在该目录下对 harbor
|
|||
|
||||
执行以下命令创建 harbor 项目。
|
||||
|
||||
. 下载指定脚本初始化 Harbor 仓库。
|
||||
+
|
||||
[source,bash]
|
||||
----
|
||||
curl -O https://raw.githubusercontent.com/kubesphere/ks-installer/master/scripts/create_project_harbor.sh
|
||||
----
|
||||
|
||||
. 修改脚本配置文件。
|
||||
. 创建脚本配置文件。
|
||||
+
|
||||
--
|
||||
[source,bash]
|
||||
|
|
@ -559,7 +552,7 @@ vi create_project_harbor.sh
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
url="https://dockerhub.kubekey.local" # 修改为 https://dockerhub.kubekey.local 或实际镜像仓库地址。
|
||||
url="https://dockerhub.kubekey.local" # 或修改为实际镜像仓库地址
|
||||
user="admin"
|
||||
passwd="Harbor12345"
|
||||
|
||||
|
|
@ -604,16 +597,6 @@ for project in "${harbor_projects[@]}"; do
|
|||
curl -u "${user}:${passwd}" -X POST -H "Content-Type: application/json" "${url}/api/v2.0/projects" -d "{ \"project_name\": \"${project}\", \"public\": true}" -k # 注意在 curl 命令末尾加上 -k
|
||||
done
|
||||
----
|
||||
|
||||
[.admon.attention,cols="a"]
|
||||
|===
|
||||
|注意
|
||||
|
||||
|
|
||||
* 修改 url 的值为 https://dockerhub.kubekey.local。
|
||||
* 脚本末尾 curl 命令末尾加上 -k。
|
||||
|===
|
||||
|
||||
--
|
||||
|
||||
. 创建 Harbor 项目。
|
||||
|
|
|
|||
Loading…
Reference in New Issue