-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Bot resource in Machine ID deployment guides (#40944)
* Use bot yaml resource in machine id deployment guides * Update the number for the k8s guide steps * Update docs/pages/includes/machine-id/create-a-bot.mdx Co-authored-by: Gavin Frazar <[email protected]> * Update docs/pages/includes/machine-id/create-a-bot.mdx Co-authored-by: Gavin Frazar <[email protected]> * Update docs/pages/machine-id/deployment/spacelift.mdx Co-authored-by: Gavin Frazar <[email protected]> * Update docs/pages/machine-id/deployment/spacelift.mdx Co-authored-by: Gavin Frazar <[email protected]> * Fix heading level --------- Co-authored-by: Gavin Frazar <[email protected]>
- Loading branch information
1 parent
c6408c8
commit 590407d
Showing
9 changed files
with
167 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Next, you need to create a Bot. A Bot is a Teleport identity for a machine or | ||
group of machines. Like users, bots have a set of roles and traits which define | ||
what they can access. | ||
|
||
Create `bot.yaml`: | ||
|
||
```yaml | ||
kind: bot | ||
version: v1 | ||
metadata: | ||
# name is a unique identifier for the Bot in the cluster. | ||
name: example | ||
spec: | ||
# roles is a list of roles to grant to the Bot. Don't worry if you don't know | ||
# what roles you need to specify here, the Access Guides will walk you through | ||
# creating and assigning roles to the already created Bot. | ||
roles: [] | ||
``` | ||
Make sure you replace `example` with a unique, descriptive name for your Bot. | ||
|
||
Use `tctl` to apply this file: | ||
|
||
```code | ||
$ tctl create bot.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ guidance on deploying Machine ID as a workload on Kubernetes. | |
- A GCP Compute Engine VM that you wish to install Machine ID onto that has | ||
been configured with the GCP service account. | ||
|
||
## Step 1/4. Install `tbot` | ||
## Step 1/5. Install `tbot` | ||
|
||
**This step is completed on the GCP VM.** | ||
|
||
|
@@ -43,7 +43,13 @@ Download and install the appropriate Teleport package for your platform: | |
|
||
(!docs/pages/includes/install-linux.mdx!) | ||
|
||
## Step 2/4. Create a join token and bot user | ||
## Step 2/5. Create a Bot | ||
|
||
**This step is completed on your local machine.** | ||
|
||
(!docs/pages/includes/machine-id/create-a-bot.mdx!) | ||
|
||
## Step 3/5. Create a join token | ||
|
||
**This step is completed on your local machine.** | ||
|
||
|
@@ -57,7 +63,7 @@ metadata: | |
name: example-bot | ||
spec: | ||
roles: [Bot] | ||
# bot_name will match the name of the bot created later in this guide. | ||
# bot_name should match the name of the bot created earlier in this guide. | ||
bot_name: example | ||
join_method: gcp | ||
gcp: | ||
|
@@ -75,6 +81,7 @@ spec: | |
Replace: | ||
- `my-project-123456` with the ID of your GCP project | ||
- `example` with the name of the bot you created in the second step. | ||
- `[email protected]` with the email | ||
of the service account configured in the previous step. The default compute | ||
service account is not supported. | ||
|
@@ -85,13 +92,7 @@ Use `tctl` to apply this file: | |
$ tctl create -f bot-token.yaml | ||
``` | ||
|
||
Create the bot, specifying the token that you have created: | ||
|
||
```code | ||
$ tctl bots add example --token example-bot | ||
``` | ||
|
||
## Step 3/4. Configure `tbot` | ||
## Step 4/5. Configure `tbot` | ||
|
||
**This step is completed on the GCP VM.** | ||
|
||
|
@@ -117,7 +118,7 @@ Replace: | |
|
||
(!docs/pages/includes/machine-id/daemon-or-oneshot.mdx!) | ||
|
||
## Step 4/4. Configure outputs | ||
## Step 5/5. Configure outputs | ||
|
||
(!docs/pages/includes/machine-id/configure-outputs.mdx!) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.