fix MEMBER_CLUSTER_NAME command usage

Signed-off-by: panguicai008 <1121906548@qq.com>
This commit is contained in:
panguicai008 2022-09-08 18:59:51 +08:00
parent 665af6916a
commit 2dd2dfc6ec
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ Register Kubernetes cluster to Karmada control plane.
Register cluster with 'Push' mode
Step 1: Use "%[2]s join" command to register the cluster to Karmada control plane. --cluster-kubeconfig is kubeconfig of the member cluster.
(In karmada)~# MEMBER_CLUSTER_NAME="cat ~/.kube/config | grep current-context | sed 's/: /\n/g'| sed '1d'"
(In karmada)~# MEMBER_CLUSTER_NAME=$(cat ~/.kube/config | grep current-context | sed 's/: /\n/g'| sed '1d')
(In karmada)~# %[2]s --kubeconfig %[1]s/karmada-apiserver.config join ${MEMBER_CLUSTER_NAME} --cluster-kubeconfig=$HOME/.kube/config
Step 2: Show members of karmada