Skip to content

Commit 39d4c3a

Browse files
committed
Doc: update how to retrieve kubeconfig
Update to use clusterctl get kubeconfig which is available in clusterctl v0.3.9 or newer.
1 parent c166776 commit 39d4c3a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/external-cloud-provider.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ To deploy a cluster using [external cloud provider](https://github.com/kubernete
77
- After control plane is up and running, retrieve the workload cluster Kubeconfig:
88

99
```shell
10-
kubectl --namespace=default get secret/${CLUSTER_NAME}-kubeconfig -o jsonpath={.data.value} \
11-
| base64 --decode \
12-
> ./${CLUSTER_NAME}.kubeconfig
10+
clusterctl get kubeconfig ${CLUSTER_NAME} --namespace default > ./${CLUSTER_NAME}.kubeconfig
1311
```
1412

1513
- Deploy a CNI solution

0 commit comments

Comments
 (0)