diff --git a/README.md b/README.md index d1a05755..04a410f1 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ k3sup install \ --context my-k3s ``` -Here we set a context of `my-k3s` and also merge into our main local `KUBECONFIG` file, so we could run `kubectl config set-context my-k3s` or `kubectx my-k3s`. +Here we set a context of `my-k3s` and also merge into our main local `KUBECONFIG` file, so we could run `kubectl config use-context my-k3s` or `kubectx my-k3s`. ### 😸 Join some agents to your Kubernetes server diff --git a/cmd/install.go b/cmd/install.go index c1e8c4a4..09321d14 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -414,7 +414,7 @@ func writeConfig(path string, data []byte, context string, suppressMessage bool) # Test your cluster with: export KUBECONFIG=%s -kubectl config set-context %s +kubectl config use-context %s kubectl get node -o wide %s