You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/virt-temporary-token-VNC.adoc
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
[id="virt-temporary-token-VNC_{context}"]
7
7
= Generating a temporary token for the VNC console
8
8
9
-
Generate a temporary authentication bearer token for the Kubernetes API to access the VNC of a virtual machine (VM).
9
+
To access the VNC of a virtual machine (VM), generate a temporary authentication bearer token for the Kubernetes API.
10
10
11
11
[NOTE]
12
12
====
@@ -15,7 +15,7 @@ Kubernetes also supports authentication using client certificates, instead of a
15
15
16
16
.Prerequisites
17
17
18
-
* A running virtual machine with {VirtProductName} 4.14 or later and xref:../../virt/about-virt/virt-architecture#virt-about-ssp-operator_virt-architecture[`ssp-operator`] 4.14 or later
18
+
* A running VM with {VirtProductName} 4.14 or later and xref:../../virt/about-virt/virt-architecture#virt-about-ssp-operator_virt-architecture[`ssp-operator`] 4.14 or later
19
19
20
20
.Procedure
21
21
@@ -26,14 +26,15 @@ Kubernetes also supports authentication using client certificates, instead of a
<1> Duration can be in hours and minutes, with a minimum duration of 10 minutes. Example: `5h30m`. The token is valid for 10 minutes by default if this parameter is not set.
36
+
+
37
+
The `<duration>` parameter can be set in hours and minutes, with a minimum duration of 10 minutes. For example: `5h30m`. If this parameter is not set, the token is valid for 10 minutes by default.
37
38
+
38
39
Sample output:
39
40
+
@@ -53,16 +54,28 @@ You can now use the token to access the VNC console of a VM.
53
54
54
55
.Verification
55
56
56
-
. Log in to the cluster by running the following command:
57
+
. Log in to the cluster by entering the following command:
57
58
+
58
59
[source,terminal]
59
60
----
60
61
$ oc login --token ${VNC_TOKEN}
61
62
----
62
63
63
-
. Use `virtctl` to test access to the VNC console of the VM by running the following command:
64
+
. Test access to the VNC console of the VM by using the `virtctl` command:
64
65
+
65
66
[source,terminal]
66
67
----
67
68
$ virtctl vnc <vm_name> -n <namespace>
68
69
----
70
+
71
+
[WARNING]
72
+
====
73
+
It is currently not possible to revoke a specific token.
74
+
75
+
To revoke a token, you must delete the service account that was used to create it. However, this also revokes all other tokens that were created by using the service account. Use the following command with caution:
0 commit comments