Skip to content

Commit 5a681dc

Browse files
rootjsdu
root
authored and
jsdu
committed
add some notice for deploy.
Signed-off-by: jsdu <[email protected]>
1 parent e2c5898 commit 5a681dc

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ In the following steps, we assumed that you follow this tutorial to set up a min
2121

2222
1.Switch user-context to karmada-host
2323

24+
> karmada-host means that you are deploying Karmada with the kubeconfig for the Karmada host cluster.
25+
2426
```bash
2527
export KUBECONFIG="$HOME/.kube/karmada.config"
2628
kubectl config use-context karmada-host
@@ -37,20 +39,20 @@ You still need the jwt token to login to the dashboard.
3739

3840
3.Create Service Account
3941

40-
switch user-context to karmada-apiserver:
42+
switch user-context to karmada-apiserver, it is important to note the configuration switching of kubeconfig:
4143
```bash
42-
kubectl config use-context karmada-apiserver
44+
kubectl config use-context karmada-apiserver --kubeconfig=/etc/karmada/karmada-apiserver.config
4345
```
4446
Create Service Account:
4547
```bash
46-
kubectl apply -f artifacts/dashboard/karmada-dashboard-sa.yaml
48+
kubectl apply -f artifacts/dashboard/karmada-dashboard-sa.yaml --kubeconfig=/etc/karmada/karmada-apiserver.config
4749
```
4850

4951
4.Get jwt token
5052

5153
Execute the following code to get the jwt token:
5254
```bash
53-
kubectl -n karmada-system get secret/karmada-dashboard-secret -o go-template="{{.data.token | base64decode}}"
55+
kubectl -n karmada-system get secret/karmada-dashboard-secret -o go-template="{{.data.token | base64decode}}" --kubeconfig=/etc/karmada/karmada-apiserver.config
5456
```
5557

5658
it should print results like this:
@@ -61,7 +63,7 @@ eyJhbGciOiJSUzI1NiIsImtpZCI6InZLdkRNclVZSFB6SUVXczBIRm8zMDBxOHFOanQxbWU4WUk1VVVp
6163
### Login Dashboard
6264
Now open Karmada-dashboard with url [http://your-karmada-host:32000 ]()
6365

64-
copy the token you just generated and paste it into the Enter token field on the login page.
66+
copy the token you just generated and paste it into the Enter token field on the login page.
6567
![image](docs/images/readme-login-en.png)
6668
Once the process of authentication passed, you can use karmada dashboard freely. You can follow the Usage of karmada-dashboard to have a quick experience of karmada dashboard.
6769

@@ -77,7 +79,7 @@ Resources:
7779
- [Meeting Link](https://zoom.us/j/97070047574?pwd=lXha0Sqngw4mwtmArP1sjsLMMXk34z.1)
7880

7981
## 💻Contributing
80-
Karmada dashboard is still catching up with the features of Karmada, we have only implemented the basic functionalities currently.
82+
Karmada dashboard is still catching up with the features of Karmada, we have only implemented the basic functionalities currently.
8183
If you want to contribute to the development of the Karmada dashboard, you can refer to the document of development, we are happy to see more contributors join us.
8284
Please feel free to submit issues or pull requests to our repository.
8385

README_cn.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Karmada是一个多云多集群管理的项目,Karmada Dashboard 是一个通
2020

2121
1.在kubeconfig中把user-context切换到karmada-host
2222

23+
> karmada-host, 部署karmada的host的kubeconfig
24+
2325
```bash
2426
export KUBECONFIG="$HOME/.kube/karmada.config"
2527
kubectl config use-context karmada-host
@@ -35,20 +37,21 @@ kubectl apply -k artifacts/overlays/nodeport-mode
3537

3638
3.创建Service-Account资源
3739

38-
在kubeconfig中把user-context切换到karmada-apiserver
40+
在kubeconfig中把user-context切换到karmada-apiserver, 这里需要注意kubeconfig的配置切换
41+
3942
```bash
40-
kubectl config use-context karmada-apiserver
43+
kubectl config use-context karmada-apiserver --kubeconfig=/etc/karmada/karmada-apiserver.config
4144
```
4245
执行下面的命令创建一个service-account的资源
4346
```bash
44-
kubectl apply -f artifacts/dashboard/karmada-dashboard-sa.yaml
47+
kubectl apply -f artifacts/dashboard/karmada-dashboard-sa.yaml --kubeconfig=/etc/karmada/karmada-apiserver.config
4548
```
4649

4750
4.获取 jwt token:
4851

4952
执行下面的命令生成jwt token:
5053
```bash
51-
kubectl -n karmada-system get secret/karmada-dashboard-secret -o go-template="{{.data.token | base64decode}}"
54+
kubectl -n karmada-system get secret/karmada-dashboard-secret -o go-template="{{.data.token | base64decode}}" --kubeconfig=/etc/karmada/karmada-apiserver.config
5255
```
5356

5457
jwt token的形式如下所示:

0 commit comments

Comments
 (0)