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: docs/pages/connect-your-client/tsh.mdx
+2
Original file line number
Diff line number
Diff line change
@@ -686,6 +686,8 @@ $ tsh join <session_ID>
686
686
Refer them to the [Moderated Sessions guide](../admin-guides/access-controls/guides/joining-sessions.mdx) for more information on configuring join permissions.
687
687
</Admonition>
688
688
689
+
You can also list active sessions with the `tsh sessions ls` command.
Copy file name to clipboardexpand all lines: docs/pages/reference/cli/tbot.mdx
+48
Original file line number
Diff line number
Diff line change
@@ -427,6 +427,54 @@ command supports these additional flags:
427
427
|`--reader-group`| An additional group name or GID that should be allowed by ACLs to read this destination. Only valid for file destinations on Linux. |
428
428
|`--kubernetes-cluster`| The name of the Kubernetes cluster in Teleport for which to fetch credentials |
429
429
430
+
## tbot start kubernetes/v2
431
+
432
+
Starts the Machine ID client `tbot` with a Kubernetes V2 output, fetching and
433
+
writing Kubernetes credentials to a `kubeconfig.yaml` at a regular interval to
434
+
the output specified with `--destination`.
435
+
436
+
Unlike the `kubernetes` output, `kubernetes/v2` allows fetching many Kubernetes
437
+
clusters at once, as multiple contexts within the generated `kubeconfig.yaml`.
438
+
If label selectors are used and clusters are added or removed, the list of
439
+
clusters will be updated on the bot's next renewal. At least one selector -
440
+
either name or label - is required.
441
+
442
+
Note that as with human users using `tsh kube ls`, only clusters the bot user
443
+
has permission to access will be matched. Additionally, note that label
444
+
selectors do not currently support wildcards.
445
+
446
+
### Flags
447
+
448
+
In addition to the [common `tbot start` flags](#common-start-flags), this
449
+
command supports these additional flags:
450
+
451
+
| Flag | Description |
452
+
|-------------------------|-------------|
453
+
|`--destination`| A destination URI, such as `file:///foo/bar`. See [Destination URIs](#destination-uris) for more info. Required. |
454
+
|`--reader-user`| An additional user name or UID that should be allowed by ACLs to read this destination. Only valid for file destinations on Linux. |
455
+
|`--reader-group`| An additional group name or GID that should be allowed by ACLs to read this destination. Only valid for file destinations on Linux. |
456
+
|`--name-selector`| Selects a Kubernetes cluster by exact name match. Repeatable. |
457
+
|`--label-selector`| Selects many Kubernetes clusters by label match, e.g. `env=dev,role=ci`. Repeatable. |
458
+
|`--disable-exec-plugin`| If set, disables the exec plugin. Allows credentials to be used without the `tbot` binary. |
0 commit comments