Skip to content

Commit

Permalink
Merge pull request #74 from Douglas235/update_doc
Browse files Browse the repository at this point in the history
Update command
  • Loading branch information
Iceber authored Jul 18, 2023
2 parents 67d441f + 5b34ce4 commit d142819
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion content/en/docs/usage/import-clusters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion content/zh/docs/usage/import-clusters.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ spec:

首先需要将接入集群的 kube config base64 编码。
```bash
base64 ./kubeconfig
# mac
cat ./kubeconfig | base64
# linux
cat ./kubeconfig | base64 -w 0
```
```
# 输出 base64 编码后的配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d142819

Please sign in to comment.