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/admin/provisioners.md
+73-11
Original file line number
Diff line number
Diff line change
@@ -10,22 +10,23 @@ By default, the Coder server runs [built-in provisioner daemons](../cli/server.m
10
10
11
11
-**Reduce server load**: External provisioners reduce load and build queue times from the Coder server. See [Scaling Coder](./scale.md#concurrent-workspace-builds) for more details.
12
12
13
-
> External provisioners are in an [alpha state](../contributing/feature-stages.md#alpha-features) and the behavior is subject to change. Use [GitHub issues](https://github.com/coder/coder) to leave feedback.
14
-
15
-
## Running external provisioners
16
-
17
13
Each provisioner can run a single [concurrent workspace build](./scale.md#concurrent-workspace-builds). For example, running 30 provisioner containers will allow 30 users to start workspaces at the same time.
18
14
19
15
Provisioners are started with the [coder provisionerd start](../cli/provisionerd_start.md) command.
20
16
21
-
### Authentication
17
+
## Authentication
18
+
19
+
The provisioner daemon must authenticate with your Coder deployment.
22
20
23
-
The provisioner server must authenticate with your Coder deployment. There are two authentication methods:
21
+
Set a [provisioner daemon pre-shared key (PSK)](../cli/server.md#--provisioner-daemon-psk) on the Coder server and start the provisioner with
22
+
`coder provisionerd start --psk <your-psk>`. If you are [installing with Helm](../install/kubernetes#install-coder-with-helm),
23
+
see the [Helm example](#example-running-an-external-provisioner-with-helm) below.
24
24
25
-
- PSK: Set a [provisioner daemon PSK](../cli/server#--provisioner-daemon-psk) on the Coder server and start the provisioner with `coder provisionerd start --psk <your-psk>`
26
-
- User token: [Authenticate](../cli.md#--token) the Coder CLI as a user with the Template Admin or Owner role.
25
+
> Coder still supports authenticating the provisioner daemon with a [token](../cli.md#--token) from a user with the
26
+
> Template Admin or Owner role. This method is deprecated in favor of the PSK, which only has permission to access
27
+
> provisioner daemon APIs. We recommend migrating to the PSK as soon as practical.
27
28
28
-
###Types of provisioners
29
+
## Types of provisioners
29
30
30
31
-**Generic provisioners** can pick up any build job from templates without provisioner tags.
31
32
@@ -65,7 +66,68 @@ The provisioner server must authenticate with your Coder deployment. There are t
65
66
--provisioner-tag scope=user
66
67
```
67
68
68
-
### Example: Running an external provisioner on a VM
69
+
## Example: Running an external provisioner with Helm
70
+
71
+
Coder provides a Helm chart for running external provisioner daemons, which you will use in concert with the Helm chart
72
+
for deploying the Coder server.
73
+
74
+
1. Create a long, random pre-shared key (PSK) and store it in a Kubernetes secret
0 commit comments