@@ -46,42 +46,40 @@ kubectl config set-context --current --namespace=coder
46
46
` helm search repo coder -l ` )
47
47
48
48
``` console
49
- helm install coder coder/coder --namespace coder
49
+ helm install coder coder/coder --namespace coder --version=<VERSION>
50
50
```
51
51
52
52
** Steps 3-5 are optional for non-production deployments.**
53
53
54
- 1 . Get a copy of your Helm chart so that you can modify it; you'll need to
55
- modify the Helm chart to update your PostgreSQL databases (step 4) and enable
56
- dev URLs (step 5):
54
+ 1 . Get a copy of your Helm config values so that you can modify it; you'll need
55
+ to modify these values to update your PostgreSQL databases (step 4) and
56
+ enable dev URLs (step 5):
57
57
58
- a. Get a copy of your existing Helm chart and save it as ` current- values.yaml` :
59
- ` helm show values coder/coder > current-values.yaml `
58
+ a. Create an empty file called ` values.yaml ` which will contain your
59
+ deployment configuration options.
60
60
61
- b. Edit the ` current-values.yaml ` file as needed. Be sure to remove the lines
62
- that you are _ not_ modifying, otherwise the contents of ` current-values.yaml `
63
- will override those in the default chart.
61
+ b. Edit the ` values.yaml ` file as needed.
64
62
65
63
> View the
66
64
> [ configuration options available in the ` values.yaml ` file.] ( https://github.com/cdr/enterprise-helm#values )
67
65
68
66
c. Upgrade/install your Coder deployment with the updated Helm chart (be sure
69
- to replace the placeholder value with your Coder version). ** This must be done
70
- whenever you update the Helm chart:**
67
+ to replace the placeholder value with your Coder version). ** This must be
68
+ done whenever you update the Helm chart:**
71
69
72
70
``` console
73
- helm upgrade coder coder/coder -n coder --version=<VERSION> --values current- values.yaml
71
+ helm upgrade coder coder/coder --namespace coder --version=<VERSION> --values values.yaml
74
72
```
75
73
76
74
> If you omit ` --version ` , you'll upgrade to the latest version, excluding
77
75
> release candidates (RCs). To include RCs, provide the ` --devel ` flag.
78
76
>
79
77
> We do not provide documentation for RCs, and you should not use them unless
80
- you've been instructed to do so by Coder. You can identify RCs by the
81
- presence of ` -rc ` in the version number (e.g., ` 1.16.0-rc.1 ` ).
78
+ > you've been instructed to do so by Coder. You can identify RCs by the
79
+ > presence of ` -rc ` in the version number (e.g., ` 1.16.0-rc.1 ` ).
82
80
83
81
1 . Ensure that you have superuser privileges to your PostgreSQL database. Add
84
- the following to your Helm chart so that Coder uses your external PostgreSQL
82
+ the following to your Helm values so that Coder uses your external PostgreSQL
85
83
databases:
86
84
87
85
``` yaml
@@ -96,14 +94,22 @@ kubectl config set-context --current --namespace=coder
96
94
` ` `
97
95
98
96
To create the ` passwordSecret`, run
99
- ` kubectl create secret generic <NAME> --from-file=test=/dev/stdin `
97
+ ` kubectl create secret generic <NAME> --from-literal="password=UserDefinedPassword" `
100
98
(be sure to replace `UserDefinedPassword` with your actual password).
101
99
100
+ > Put a space before the command to prevent it from being saved in your shell
101
+ > history.
102
+ >
103
+ > Running this command could potentially expose your database password to
104
+ > other users on your system through `/proc`. If this is a concern, you can
105
+ > use `--from-file=password=/dev/stdin` instead of `--from-literal=...` to
106
+ > enter your password and press `Ctrl+D` when you're done to submit it.
107
+
102
108
You can find/define these values in your
103
109
[PostgreSQL server configuration file](https://www.postgresql.org/docs/current/config-setting.html).
104
110
105
111
> For more information, [see our guide](../guides/deployments/postgres.md) on
106
- setting up a PostgreSQL instance.
112
+ > setting up a PostgreSQL instance.
107
113
108
114
1. [Enable dev URL usage](../admin/devurls.md). Dev URLs allow users to access
109
115
the web servers running in your workspace. To enable, provide a wildcard
0 commit comments