@@ -43,36 +43,38 @@ The provisioner daemon must authenticate with your Coder deployment.
43
43
We recommend creating finely-scoped keys for provisioners. Keys are scoped to an
44
44
organization, and optionally to a specific set of tags.
45
45
46
- To create a key for an organization that will match untagged jobs :
46
+ 1 . Use ` coder provisioner ` to create the key :
47
47
48
- ``` sh
49
- coder provisioner keys create my-key \
50
- --org default
48
+ - To create a key for an organization that will match untagged jobs:
51
49
52
- Successfully created provisioner key my-key! Save this authentication token, it will not be shown again.
50
+ ``` sh
51
+ coder provisioner keys create my-key \
52
+ --org default
53
53
54
- < key omitted>
55
- ```
54
+ Successfully created provisioner key my-key! Save this authentication token, it will not be shown again.
56
55
57
- To restrict the provisioner to jobs with specific tags:
56
+ < key omitted>
57
+ ```
58
58
59
- ``` sh
60
- coder provisioner keys create kubernetes-key \
61
- --org default \
62
- --tag environment=kubernetes
59
+ - To restrict the provisioner to jobs with specific tags:
63
60
64
- Successfully created provisioner key kubernetes-key! Save this authentication token, it will not be shown again.
61
+ ` ` ` sh
62
+ coder provisioner keys create kubernetes-key \
63
+ --org default \
64
+ --tag environment=kubernetes
65
65
66
- < key omitted>
67
- ```
66
+ Successfully created provisioner key kubernetes-key! Save this authentication token, it will not be shown again.
68
67
69
- You can then start the provisioner with the specified key:
68
+ < key omitted>
69
+ ` ` `
70
70
71
- ``` sh
72
- export CODER_URL=https://< your-coder-url>
73
- export CODER_PROVISIONER_DAEMON_KEY=< key>
74
- coder provisioner start
75
- ```
71
+ 1. Start the provisioner with the specified key:
72
+
73
+ ` ` ` sh
74
+ export CODER_URL=https://< your-coder-url>
75
+ export CODER_PROVISIONER_DAEMON_KEY=< key>
76
+ coder provisioner start
77
+ ` ` `
76
78
77
79
Keep reading to see instructions for running provisioners on
78
80
Kubernetes/Docker/etc.
0 commit comments