Skip to content

Commit cf304d5

Browse files
Update README. Add section on getting kubeconfig locally
1 parent 7325d75 commit cf304d5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ You can access your VirtualCluster using the vcluster CLI:
7171
vcluster connect sample-vcluster -n default
7272
```
7373

74+
Or you can get the kubeconfig locally:
75+
76+
```bash
77+
kubectl get secret sample-vcluster-kubeconfig -n default -o jsonpath="{.data.config}" | base64 --decode > kc.yaml
78+
kubectl --kubeconfig=vc-kc.yaml get pods -A
79+
```
80+
7481
## Configuration
7582

7683
The `spec.values` field in the VirtualCluster CR directly maps to the values.yaml of the vcluster Helm chart. For all available configuration options, refer to the [vcluster documentation](https://www.vcluster.com/docs/architecture/configuration).

0 commit comments

Comments
 (0)