@@ -20,42 +20,42 @@ to log in and manage templates.
20
20
1 . Create a PostgreSQL deployment. Coder does not manage a database server for
21
21
you.
22
22
23
- - If you're in a public cloud such as
24
- [ Google Cloud] ( https://cloud.google.com/sql/docs/postgres/ ) ,
25
- [ AWS] ( https://aws.amazon.com/rds/postgresql/ ) ,
26
- [ Azure] ( https://docs.microsoft.com/en-us/azure/postgresql/ ) , or
27
- [ DigitalOcean] ( https://www.digitalocean.com/products/managed-databases-postgresql ) ,
28
- you can use the managed PostgreSQL offerings they provide. Make sure that
29
- the PostgreSQL service is running and accessible from your cluster. It
30
- should be in the same network, same project, etc.
31
-
32
- - You can install Postgres manually on your cluster using the
33
- [ Bitnami PostgreSQL Helm chart] ( https://github.com/bitnami/charts/tree/master/bitnami/postgresql#readme ) . There are some
34
- [ helpful guides] ( https://phoenixnap.com/kb/postgresql-kubernetes ) on the
35
- internet that explain sensible configurations for this chart. Example:
36
-
37
- ``` sh
38
- # Install PostgreSQL
39
- helm repo add bitnami https://charts.bitnami.com/bitnami
40
- helm install coder-db bitnami/postgresql \
41
- --namespace coder \
42
- --set auth.username=coder \
43
- --set auth.password=coder \
44
- --set auth.database=coder \
45
- --set persistence.size=10Gi
46
- ```
47
-
48
- The cluster-internal DB URL for the above database is:
49
-
50
- ```
51
- postgres://coder:coder@postgres-postgresql.coder.svc.cluster.local:5432/coder? sslmode=disable
52
- ```
53
-
54
- > Ensure you set up periodic backups so you don' t lose data.
55
-
56
- - You can use
57
- [Postgres operator](https://github.com/zalando/postgres-operator) to
58
- manage PostgreSQL deployments on your Kubernetes cluster.
23
+ If you're in a public cloud such as
24
+ [ Google Cloud] ( https://cloud.google.com/sql/docs/postgres/ ) ,
25
+ [ AWS] ( https://aws.amazon.com/rds/postgresql/ ) ,
26
+ [ Azure] ( https://docs.microsoft.com/en-us/azure/postgresql/ ) , or
27
+ [ DigitalOcean] ( https://www.digitalocean.com/products/managed-databases-postgresql ) ,
28
+ you can use the managed PostgreSQL offerings they provide. Make sure that
29
+ the PostgreSQL service is running and accessible from your cluster. It
30
+ should be in the same network, same project, etc.
31
+
32
+ You can install Postgres manually on your cluster using the
33
+ [ Bitnami PostgreSQL Helm chart] ( https://github.com/bitnami/charts/tree/master/bitnami/postgresql#readme ) . There are some
34
+ [ helpful guides] ( https://phoenixnap.com/kb/postgresql-kubernetes ) on the
35
+ internet that explain sensible configurations for this chart. Example:
36
+
37
+ ``` sh
38
+ # Install PostgreSQL
39
+ helm repo add bitnami https://charts.bitnami.com/bitnami
40
+ helm install coder-db bitnami/postgresql \
41
+ --namespace coder \
42
+ --set auth.username=coder \
43
+ --set auth.password=coder \
44
+ --set auth.database=coder \
45
+ --set persistence.size=10Gi
46
+ ```
47
+
48
+ The cluster-internal DB URL for the above database is:
49
+
50
+ ```
51
+ postgres://coder:coder@postgres-postgresql.coder.svc.cluster.local:5432/coder?sslmode=disable
52
+ ```
53
+
54
+ > Ensure you set up periodic backups so you don't lose data.
55
+
56
+ You can use
57
+ [ Postgres operator] ( https://github.com/zalando/postgres-operator ) to
58
+ manage PostgreSQL deployments on your Kubernetes cluster.
59
59
60
60
1 . Download the latest ` coder_helm ` package from
61
61
[ GitHub releases] ( https://github.com/coder/coder/releases ) .
0 commit comments