Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update command #74

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading