Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit ae9e523

Browse files
committed
Comments
1 parent ed41540 commit ae9e523

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

setup/installation.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ kubectl config set-context --current --namespace=coder
4646
`helm search repo coder -l`)
4747

4848
```console
49-
helm install coder coder/coder -namespace coder --version=<VERSION>
49+
helm install coder coder/coder --namespace coder --version=<VERSION>
5050
```
5151

5252
**Steps 3-5 are optional for non-production deployments.**
@@ -55,20 +55,20 @@ kubectl config set-context --current --namespace=coder
5555
to modify these values to update your PostgreSQL databases (step 4) and
5656
enable dev URLs (step 5):
5757

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.
6060

6161
b. Edit the `values.yaml` file as needed.
6262

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)
6565
6666
c. Upgrade/install your Coder deployment with the updated Helm chart (be sure
6767
to replace the placeholder value with your Coder version). **This must be
6868
done whenever you update the Helm chart:**
6969

7070
```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
7272
```
7373

7474
> If you omit `--version`, you'll upgrade to the latest version, excluding
@@ -79,7 +79,7 @@ kubectl config set-context --current --namespace=coder
7979
> presence of `-rc` in the version number (e.g., `1.16.0-rc.1`).
8080
8181
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
8383
databases:
8484

8585
```yaml
@@ -94,9 +94,17 @@ kubectl config set-context --current --namespace=coder
9494
```
9595
9696
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"`
9898
(be sure to replace `UserDefinedPassword` with your actual password).
9999

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+
100108
You can find/define these values in your
101109
[PostgreSQL server configuration file](https://www.postgresql.org/docs/current/config-setting.html).
102110

0 commit comments

Comments
 (0)