Skip to content

Commit 207dfc4

Browse files
committed
fix kube config copy instructions
1 parent 5fbdd80 commit 207dfc4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/tutorials/setup_k8s.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,16 @@ On the workstation install the binary::
5959

6060
The last step adds command line completion and is worth adding to your profile.
6161

62-
From the server machine copy over the k3s kubectl configuration::
62+
If you have one machine only then copy the k3s kubectl configuration::
6363

64-
sudo scp /etc/rancher/k3s/k3s.yaml <YOUR_ACCOUNT>@<YOUR_WORKSTATION>:.kube/config
64+
mkdir ~/.kube
65+
sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
66+
sudo chown <YOUR USER> ~/.kube/config
67+
68+
If you have a separate server then from the server machine copy over the k3s kubectl configuration::
6569

66-
(Note the above command does work for a single machine too and ensures that
67-
the permissions are correct on the target file.)
70+
mkdir ~/.kube
71+
sudo scp /etc/rancher/k3s/k3s.yaml <YOUR_ACCOUNT>@<YOUR_WORKSTATION>:.kube/config
6872

6973
If you do have separate workstation then edit the file .kube/config replacing
7074
127.0.0.1 with your server's IP Address. For a single machine the file is left

0 commit comments

Comments
 (0)