Skip to content

Commit d8872f0

Browse files
ericpaulsenKatie Horne
and
Katie Horne
authored
add: install formatting & proxy config (coder#1012)
* add: install formatting & proxy config * update: wording * chore: edit text * chore: edit text * fix: typo Co-authored-by: Katie Horne <katie@coder.com>
1 parent e437fe6 commit d8872f0

File tree

2 files changed

+42
-23
lines changed

2 files changed

+42
-23
lines changed

setup/installation.md

Lines changed: 36 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,15 @@ resources from
2929
> Both the Big Bang and Ironbank repositories are one release behind the latest
3030
> version of Coder.
3131
32-
## Create the Coder namespace (optional)
32+
## Install Coder
3333

34-
We recommend running Coder in a separate
35-
[namespace](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/);
36-
to do so, run
34+
1. Create the Coder [namespace](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/):
3735

3836
```console
3937
kubectl create namespace coder
4038
```
4139

42-
Next, change the kubectl context to point to your newly created namespace:
43-
44-
```console
45-
kubectl config set-context --current --namespace=coder
46-
```
47-
48-
## Install Coder
49-
50-
1. Add the Coder Helm repo
40+
1. Add the Coder Helm repo:
5141

5242
```console
5343
helm repo add coder https://helm.coder.com
@@ -59,7 +49,7 @@ kubectl config set-context --current --namespace=coder
5949

6050
> This step will install Coder with the default configuration. This does not
6151
> set up dev URLs, TLS, ingress controllers, or an external database. To
62-
> configure these recommended features, please go to step 4.
52+
> configure these recommended features, please see the following sections.
6353
6454
```console
6555
helm install coder coder/coder --namespace coder --version=<VERSION>
@@ -91,13 +81,15 @@ kubectl config set-context --current --namespace=coder
9181
1. Create a `values.yaml` file to configure Coder:
9282

9383
```console
94-
helm show values coder/coder --version=<VERSION> > values.yaml
84+
helm show values coder/coder --namespace coder --version=<VERSION> > values.yaml
9585
```
9686

9787
> View the
9888
> [configuration options available in the `values.yaml` file.](https://github.com/coder/enterprise-helm#values)
9989
100-
1. **Optional**: change the admin user password by updating `values.yaml` as
90+
## Set the super admin password
91+
92+
**Optional**: change the admin user password by updating `values.yaml` as
10193
follows:
10294

10395
```yaml
@@ -115,7 +107,9 @@ kubectl config set-context --current --namespace=coder
115107
key: "password"
116108
```
117109
118-
1. **Optional**: To configure an externally hosted database, set the following
110+
## Connect an external database
111+
112+
**Optional**: To configure an externally hosted database, set the following
119113
in `values.yaml`:
120114

121115
> Ensure that you have superuser privileges to your PostgreSQL database.
@@ -151,15 +145,19 @@ kubectl config set-context --current --namespace=coder
151145
For more detailed configuration instructions,
152146
[see our PostgreSQL setup guide](../guides/deployments/postgres.md).
153147

154-
1. **Optional**: Enable dev URL usage.
148+
## Enable dev URLs
149+
150+
**Optional**: Enable dev URL usage.
155151
[You must provide a wildcard domain in the Helm chart](../admin/devurls.md).
156152

157153
```yaml
158154
coderd:
159155
devurlsHost: "*.my-custom-domain.io"
160156
```
161157

162-
1. **Optional:** To set up TLS:
158+
## Enable TLS
159+
160+
**Optional:** To set up TLS:
163161

164162
a. You will need to create a TLS secret. To do so, run the following with the
165163
`.pem` files provided by your certificate:
@@ -180,7 +178,9 @@ kubectl config set-context --current --namespace=coder
180178
devurlsHostSecretName: <tls-secret>
181179
```
182180

183-
1. **Optional:** If you cannot use a load balancer, you may need an ingress
181+
## Set up an ingress controller
182+
183+
**Optional:** If you cannot use a load balancer, you may need an ingress
184184
controller. To configure one with Coder, set the following in `values.yaml`:
185185

186186
> We assume that you already have an ingress controller installed in your
@@ -206,11 +206,24 @@ kubectl config set-context --current --namespace=coder
206206
annotations: {}
207207
```
208208

209-
1. Once you've implemented all of the changes in `values.yaml`, install Coder
210-
with the following command:
209+
## Configure a proxy
210+
211+
**Optional:** To have Coder initiate outbound connections via a proxy, set
212+
the following (applicable) values:
213+
214+
```yaml
215+
coderd:
216+
proxy:
217+
http: ""
218+
https: ""
219+
exempt: "cluster.local"
220+
```
221+
222+
Once you've implemented all of the changes in `values.yaml`, upgrade Coder
223+
with the following command:
211224

212225
```console
213-
helm install coder coder/coder --namespace coder --version=<VERSION> -f values.yaml
226+
helm upgrade coder coder/coder --namespace coder --version=<VERSION> -f values.yaml
214227
```
215228

216229
## Logging

setup/upgrade/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,9 @@ resources from
7272
```console
7373
helm upgrade coder coder/coder -n coder --version=<VERSION> --values current-values.yaml
7474
```
75+
76+
## Downgrading
77+
78+
When attempting to troubleshoot Coder, you may want to roll back to an older
79+
version of Coder. Doing so requires you to make and use a database snapshot
80+
since the database schema will be out of date.

0 commit comments

Comments
 (0)