Skip to content

Commit

Permalink
Explain how to set KUBECONFIG
Browse files Browse the repository at this point in the history
... using the instructions displayed by make clusters.

Fixes: #619
Signed-off-by: Stephen Kitt <skitt@redhat.com>
  • Loading branch information
skitt committed Dec 2, 2021
1 parent f5362b6 commit 7194861
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/content/getting-started/quickstart/kind/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,21 @@ cd submariner-operator
make clusters
```

This creates two Kubernetes clusters: cluster1 and cluster2. To see the list of kind clusters, use the following command:
Once the clusters are deployed, `make clusters` will indicate how to access them:

```text
Your virtual cluster(s) are deployed and working properly and can be accessed with:
export KUBECONFIG=$(find $(git rev-parse --show-toplevel)/output/kubeconfigs/ -type f -printf %p:)
$ kubectl config use-context cluster1 # or cluster2, cluster3..
To clean everthing up, just run: make clean-clusters
```

The `export KUBECONFIG` command has to be run before `kubectl` can be used.

`make clusters` creates two Kubernetes clusters: cluster1 and cluster2. To see the list of kind clusters, use the following command:

```bash
$ kind get clusters
Expand Down

0 comments on commit 7194861

Please sign in to comment.