Skip to content

Commit

Permalink
use yaml for consistency in a single page (#6120)
Browse files Browse the repository at this point in the history
  • Loading branch information
windsonsea authored Jan 10, 2025
1 parent dd8207a commit d50c366
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/en/docs/kpanda/best-practice/kubean-low-version.md
Original file line number Diff line number Diff line change
@@ -65,10 +65,10 @@ skopeo copy ${SKOPEO_PARAMS} docker-archive:spray-job-2.21.tar docker://${REGIST

### Create Offline Resources for the Earlier Versions of K8s

1. Prepare the manifest.yml file.
1. Prepare the manifest.yaml file.

```bash
cat > "manifest.yml" <<EOF
cat > "manifest.yaml" <<EOF
image_arch:
- "amd64" ## "arm64"
kube_version: ## Fill in the cluster version according to the actual scenario
@@ -84,7 +84,7 @@ skopeo copy ${SKOPEO_PARAMS} docker-archive:spray-job-2.21.tar docker://${REGIST
mkdir data
# Create the offline package
AIRGAP_IMG_ADDR="ghcr.m.daocloud.io/kubean-io/airgap-patch:2.21-d6f688f" # (1)
podman run --rm -v $(pwd)/manifest.yml:/manifest.yml -v $(pwd)/data:/data -e ZONE=CN -e MODE=FULL ${AIRGAP_IMG_ADDR}
podman run --rm -v $(pwd)/manifest.yaml:/manifest.yaml -v $(pwd)/data:/data -e ZONE=CN -e MODE=FULL ${AIRGAP_IMG_ADDR}
```
1. The image spray-job can use the accelerator address here, and the image address is determined based on the selected artifact version
@@ -110,10 +110,10 @@ skopeo copy ${SKOPEO_PARAMS} docker-archive:spray-job-2.21.tar docker://${REGIST
kubectl apply -f data/localartifactset.cr.yaml
# Download the manifest resources corresponding to release-2.21
wget https://raw.githubusercontent.com/kubean-io/kubean-manifest/main/manifests/manifest-2.21-d6f688f.yml
wget https://raw.githubusercontent.com/kubean-io/kubean-manifest/main/manifests/manifest-2.21-d6f688f.yaml
# Deploy the manifest resources corresponding to release-2.21
kubectl apply -f manifest-2.21-d6f688f.yml
kubectl apply -f manifest-2.21-d6f688f.yaml
```
### Deployment and Upgrade Legacy K8s Cluster
10 changes: 5 additions & 5 deletions docs/zh/docs/kpanda/best-practice/kubean-low-version.md
Original file line number Diff line number Diff line change
@@ -66,10 +66,10 @@ skopeo copy ${SKOPEO_PARAMS} docker-archive:spray-job-2.21.tar docker://${REGIST

### 制作低版本 K8s 离线资源

1. 准备 manifest.yml 文件。
1. 准备 manifest.yaml 文件。

```bash
cat > "manifest.yml" <<EOF
cat > "manifest.yaml" <<EOF
image_arch:
- "amd64" ## "arm64"
kube_version: ## 根据实际场景填写集群版本
@@ -85,7 +85,7 @@ skopeo copy ${SKOPEO_PARAMS} docker-archive:spray-job-2.21.tar docker://${REGIST
mkdir data
# 制作离线包,
AIRGAP_IMG_ADDR="ghcr.m.daocloud.io/kubean-io/airgap-patch:2.21-d6f688f" # (1)!
podman run --rm -v $(pwd)/manifest.yml:/manifest.yml -v $(pwd)/data:/data -e ZONE=CN -e MODE=FULL ${AIRGAP_IMG_ADDR}
podman run --rm -v $(pwd)/manifest.yaml:/manifest.yaml -v $(pwd)/data:/data -e ZONE=CN -e MODE=FULL ${AIRGAP_IMG_ADDR}
```
1. 镜像 spray-job 这里可以采用加速器地址,镜像地址根据选择制品版本来决定
@@ -114,10 +114,10 @@ skopeo copy ${SKOPEO_PARAMS} docker-archive:spray-job-2.21.tar docker://${REGIST
kubectl apply -f localartifactset.cr.yaml
# 下载 release-2.21 版本的 manifest 资源
wget https://raw.githubusercontent.com/kubean-io/kubean-manifest/main/manifests/manifest-2.21-d6f688f.yml
wget https://raw.githubusercontent.com/kubean-io/kubean-manifest/main/manifests/manifest-2.21-d6f688f.yaml
# 部署 release-2.21 对应的 manifest 资源
kubectl apply -f manifest-2.21-d6f688f.yml
kubectl apply -f manifest-2.21-d6f688f.yaml
```
### 部署和升级 K8s 集群兼容版本

0 comments on commit d50c366

Please sign in to comment.