Skip to content

Commit

Permalink
complete missing step for working-with-anp
Browse files Browse the repository at this point in the history
Signed-off-by: changzhen <[email protected]>
  • Loading branch information
XiShanYongYe-Chang committed Jan 11, 2022
1 parent 21fb1c2 commit 4236848
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/working-with-anp.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,16 @@ Deploying the proxy-agent in the pull mode member cluster (in this example, clus
kind load docker-image swr.ap-southeast-1.myhuaweicloud.com/karmada/proxy-agent:0.0.24 --name member3
kubectl --kubeconfig=/root/.kube/members.config --context=member3 apply -f proxy-agent.yaml
```
**The ANP deployment is complete.**
**The ANP deployment is complete.**

### Step 6: Edit karmada-agent deployment

After deploying ANP deployment, we need to add command flags `cluster-api-endpoint` and `proxy-server-address` for karmada-agent deployment on `member3` cluster.

Where `cluster-api-endpoint` is the APIEndpoint of the cluster. You can obtain it from the KubeConfig file of the `member3` cluster.

Where `proxy-server-address` is the address of the proxy server that is used to proxy the cluster. In current case, we can set `proxy-server-address` to `http://<karmada_controlplan_addr>:8088`. Get `karmada_controlplan_addr` value through the following command:
```shell
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' karmada-host-control-plane
```
Port `8088` is set by our code modification in ANP: https://github.com/mrlihanbo/apiserver-network-proxy/blob/v0.0.24/dev/cmd/server/app/server.go#L267, you can modify it as well.

0 comments on commit 4236848

Please sign in to comment.