-
Notifications
You must be signed in to change notification settings - Fork 894
feat: initial docs pages #1107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: initial docs pages #1107
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
eba2d48
docs structure and edits to getting started
bpmct 1283422
draft for about page
bpmct 8cb6a88
skeleton for concepts page
bpmct 4c1b767
attempt at explaining templates
bpmct d5f5116
left-align tables
bpmct de9f3af
add best practices and variables
bpmct 892122c
update structrure
bpmct c526982
update structure
bpmct 68da32e
templates are shared
bpmct 808767e
workspaces docs
bpmct c8f1e25
remove coming soon
bpmct a803f8a
fix typos
bpmct 1bb34bd
docs structure and edits to getting started
bpmct 97f03e0
draft for about page
bpmct 0485c6c
skeleton for concepts page
bpmct 0e1bc57
attempt at explaining templates
bpmct 57d4d0f
left-align tables
bpmct fc48d53
add best practices and variables
bpmct 361decc
update structrure
bpmct 950ee85
update structure
bpmct afac7ee
templates are shared
bpmct e67dabb
workspaces docs
bpmct 325c46c
remove coming soon
bpmct e37e4a4
fix typos
bpmct c010530
Merge branch 'bpmct/docs' of https://github.com/coder/coder into bpmc…
3bf7d4f
fix typos
bpmct ebcb866
Update docs/about.md
bpmct 9c18282
remove line breaks between bullets
bpmct 3e4318a
rename variables to parameters
bpmct 8c93ae2
reduce limits
bpmct 75af45b
merge
bpmct 2ef477d
chore: edit text
c875319
Merge branch 'bpmct/docs' of https://github.com/coder/coder into bpmc…
81435b5
revert some changes, fix footnotes
bpmct File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update structrure
- Loading branch information
commit 361decc2e23d3aff4c01c17b79a5b9757f9986c1
There are no files selected for viewing
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,42 @@ | ||
# Templates | ||
|
||
Coder admins manage *templates* to define the infrastructure behind workspaces. A Coder deployment can have templates for different workloads. | ||
|
||
## Managing templates | ||
|
||
Coder provides production-ready template [examples](../examples/), but they can be modified with Terraform. | ||
|
||
```sh | ||
# start from an example | ||
coder templates init | ||
|
||
# optional: modify the template | ||
vim <template-name>/main.tf | ||
|
||
# add the template to Coder deployment | ||
coder templates <create/update> <template-name> | ||
``` | ||
|
||
If you are commonly editing templates, we recommend source-controlling template code using GitOps/CI pipelines to make changes. | ||
|
||
## Persistant and ephemeral resources | ||
|
||
Coder supports ephemeral and persistant resources in workspaces. Ephemeral resources are be destroyed when a workspace is not in use (stopped). Persistant resources remain. See how this works for an example "frontend" template: | ||
|
||
| Resource | Type | | ||
| :--------------------------- | :--------- | | ||
| google_compute_disk.home_dir | persistent | | ||
| kubernetes_pod.dev | ephemeral | | ||
| └─ nodejs (linux, amd64) | | | ||
| api_token.backend | ephemeral | | ||
|
||
When a workspace is deleted, all related resources are destroyed. | ||
|
||
## Variables | ||
bpmct marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Templates often contain *variables*. In Coder, there are two types of variables. | ||
|
||
**Admin variables** are set when a template is being created/updated. These are often cloud secrets, such as a ServiceAccount token. These are annotated with `sensitive = true` in the template code. | ||
|
||
**User variables** are set when a user creates a workspace. They are unique to each workspace, often personalization settings such as preferred region or workspace image. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.