diff --git a/content/en/docs/usage/import-clusters.md b/content/en/docs/usage/import-clusters.md index 0508db06..877d3711 100644 --- a/content/en/docs/usage/import-clusters.md +++ b/content/en/docs/usage/import-clusters.md @@ -34,7 +34,11 @@ One of the easiest ways to connect and authenticate to a cluster is to use the k First you need to base64 encode the kube config for the imported cluster. ```bash -base64 ./kubeconfig +# mac +cat ./kubeconfig | base64 + +# linux +cat ./kubeconfig | base64 -w 0 ``` ``` # Output: diff --git a/content/en/docs/usage/interfacing-to-multi-cloud-platforms.md b/content/en/docs/usage/interfacing-to-multi-cloud-platforms.md index 5df52e4a..ffd21fa1 100644 --- a/content/en/docs/usage/interfacing-to-multi-cloud-platforms.md +++ b/content/en/docs/usage/interfacing-to-multi-cloud-platforms.md @@ -19,7 +19,7 @@ Users can refer to [Cluster API Quick Start](https://cluster-api.sigs.k8s.io/use Create `ClusterImportPolicy` for interfacing to the ClusterAPI platform. ```bash -$ kubectl applyf -f https://raw.githubusercontent.com/clusterpedia-io/clusterpedia/main/deploy/clusterimportpolicy/cluster_api.yaml +$ kubectl apply -f https://raw.githubusercontent.com/clusterpedia-io/clusterpedia/main/deploy/clusterimportpolicy/cluster_api.yaml $ kubectl get clusterimportpolicy NAME AGE cluster-api 4d19h diff --git a/content/zh/docs/usage/import-clusters.md b/content/zh/docs/usage/import-clusters.md index 620011bc..1a2fbdbc 100644 --- a/content/zh/docs/usage/import-clusters.md +++ b/content/zh/docs/usage/import-clusters.md @@ -34,7 +34,11 @@ spec: 首先需要将接入集群的 kube config base64 编码。 ```bash -base64 ./kubeconfig +# mac +cat ./kubeconfig | base64 + +# linux +cat ./kubeconfig | base64 -w 0 ``` ``` # 输出 base64 编码后的配置 diff --git a/content/zh/docs/usage/interfacing-to-multi-cloud-platforms.md b/content/zh/docs/usage/interfacing-to-multi-cloud-platforms.md index d3b51155..f2c6e66b 100644 --- a/content/zh/docs/usage/interfacing-to-multi-cloud-platforms.md +++ b/content/zh/docs/usage/interfacing-to-multi-cloud-platforms.md @@ -17,7 +17,7 @@ weight: 10 创建用于对接 Cluster API 平台的 `ClusterImportPolicy`。 ```bash -$ kubectl applyf -f https://raw.githubusercontent.com/clusterpedia-io/clusterpedia/main/deploy/clusterimportpolicy/cluster_api.yaml +$ kubectl apply -f https://raw.githubusercontent.com/clusterpedia-io/clusterpedia/main/deploy/clusterimportpolicy/cluster_api.yaml $ kubectl get clusterimportpolicy NAME AGE cluster-api 4d19h