cmd/kgctl: use KUBECONFIG from env

This commit is contained in:
Lucas Servén Marín
2019-05-03 14:22:05 +02:00
parent 5865cefbfa
commit 72991949ac
3 changed files with 6 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ EOF
This configuration can then be applied to a local WireGuard interface, e.g. `wg0`, with the help of the `kgctl` tool:
```shell
kgctl --kubeconfig=$KUBECONFIG showconf peer squat > peer.ini
kgctl showconf peer squat > peer.ini
sudo wg setconf wg0 peer.ini
```
@@ -111,7 +111,7 @@ The topology of a Kilo network can be analyzed using the `kgctl` binary.
For example, the `graph` command can be used to generate a graph of the network in Graphviz format:
```shell
kgctl graph --kubeconfig=$KUBECONFIG | twopi -Tsvg > cluster.svg
kgctl graph | twopi -Tsvg > cluster.svg
```
<img src="./cluster.svg">