Improve the Kubernetes Dynamic Registration guide (#18840)

* Improve the Kubernetes Dynamic Registration guide

Some review comments for an earlier PR that edited the Standalone
Kubernetes guide (#18608) also apply to this one:

- Use systemctl to start TAR-based Teleport installations
- Edit the `curl` command that fetches the kubeconfig script so it uses
  the Teleport release specified in the docs

* Respond to PR feedback
This commit is contained in:
Paul Gottschling 2022-11-30 17:11:36 -05:00 committed by GitHub
parent d9b4c19986
commit 09cb12b637
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,11 +160,16 @@ manager or via a TAR archive:
```code ```code
$ sudo systemctl start teleport $ sudo systemctl start teleport
``` ```
</TabItem> </TabItem>
<TabItem label="TAR archive"> <TabItem label="TAR archive">
```code ```code
$ sudo teleport start $ sudo teleport install systemd --output=/etc/systemd/system/teleport.service;
$ sudo systemctl enable teleport;
$ sudo systemctl start teleport;
``` ```
</TabItem> </TabItem>
</Tabs> </Tabs>
@ -279,7 +284,7 @@ will use to generate the kubeconfig:
```code ```code
$ curl -OL \ $ curl -OL \
https://raw.githubusercontent.com/gravitational/teleport/master/examples/k8s-auth/get-kubeconfig.sh https://raw.githubusercontent.com/gravitational/teleport/v(=teleport.version=)/examples/k8s-auth/get-kubeconfig.sh
``` ```
The script creates a service account for the Teleport Kubernetes Service that The script creates a service account for the Teleport Kubernetes Service that