@@ -46,7 +46,7 @@ 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 --version=<VERSION>
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.**
@@ -55,20 +55,20 @@ kubectl config set-context --current --namespace=coder
55
55
to modify these values to update your PostgreSQL databases (step 4) and
56
56
enable dev URLs (step 5):
57
57
58
- a. Get a copy of your existing Helm values and save it as ` values.yaml ` :
59
- ` helm get values coder -n coder | tail -n +2 > values.yaml `
58
+ a. Create an empty file called ` values.yaml ` which will contain your
59
+ deployment configuration options.
60
60
61
61
b. Edit the ` values.yaml ` file as needed.
62
62
63
- > View the [ configuration options available in the ` values.yaml `
64
- > file.] ( https://github.com/cdr/enterprise-helm#values )
63
+ > View the
64
+ > [ configuration options available in the ` values.yaml ` file.] ( https://github.com/cdr/enterprise-helm#values )
65
65
66
66
c. Upgrade/install your Coder deployment with the updated Helm chart (be sure
67
67
to replace the placeholder value with your Coder version). ** This must be
68
68
done whenever you update the Helm chart:**
69
69
70
70
``` console
71
- helm upgrade coder coder/coder -n coder --version=<VERSION> --values values.yaml
71
+ helm upgrade coder coder/coder --namespace coder --version=<VERSION> --values values.yaml
72
72
```
73
73
74
74
> If you omit ` --version ` , you'll upgrade to the latest version, excluding
@@ -79,7 +79,7 @@ kubectl config set-context --current --namespace=coder
79
79
> presence of ` -rc ` in the version number (e.g., ` 1.16.0-rc.1 ` ).
80
80
81
81
1 . Ensure that you have superuser privileges to your PostgreSQL database. Add
82
- 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
83
83
databases:
84
84
85
85
``` yaml
@@ -94,9 +94,17 @@ kubectl config set-context --current --namespace=coder
94
94
` ` `
95
95
96
96
To create the ` passwordSecret`, run
97
- ` echo "UserDefinedPassword" | kubectl create secret generic <NAME> --from-file= password=/dev/stdin `
97
+ ` kubectl create secret generic <NAME> --from-literal=" password=UserDefinedPassword" `
98
98
(be sure to replace `UserDefinedPassword` with your actual password).
99
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 hit `Ctrl+D` when you're done to submit it.
107
+
100
108
You can find/define these values in your
101
109
[PostgreSQL server configuration file](https://www.postgresql.org/docs/current/config-setting.html).
102
110
0 commit comments