Skip to content

Commit 282d72d

Browse files
authored
admin-user token instructions for k3s v1.24+
1 parent 649ae5f commit 282d72d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/tutorials/useful_k8s.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,16 @@ Then create the admin user and role by executing the following:
4646
namespace: kubernetes-dashboard
4747
EOF
4848
49-
get a token for the user and copy the token into your clipboard::
49+
Get a token for the user and copy the token into your clipboard.
50+
51+
On k3s v1.23 and older::
5052
5153
kubectl -n kubernetes-dashboard describe secret admin-user-token | grep '^token'
5254
55+
On k3s v1.24 and newer::
56+
57+
kubectl -n kubernetes-dashboard create token admin-user
58+
5359
Use kubectl to start a proxy that will forward HTTP requests to your cluster::
5460
5561
kubectl proxy &
@@ -150,4 +156,4 @@ cd to the root of the project you created in `deploy_example`, then::
150156
151157
.. _WSL2 instructions: https://docs.microsoft.com/en-us/windows/wsl/install-win10
152158
.. _docker for WSL: https://docs.docker.com/docker-for-windows/wsl/
153-
.. _X11 Server for Windows: https://sourceforge.net/projects/vcxsrv/
159+
.. _X11 Server for Windows: https://sourceforge.net/projects/vcxsrv/

0 commit comments

Comments
 (0)