Skip to content

Commit f64fc6e

Browse files
author
Katie Horne
authored
chore: ssl certs - update Cloud DNS installation step (coder#449)
1 parent 100493b commit f64fc6e

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

guides/ssl-certificates/cloudDNS.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,27 @@ If successful, you'll see a response similar to:
124124
clusterissuer.cert-manager.io/letsencrypt created
125125
```
126126

127-
## Step 5: Create a certificates.yaml file and apply it
127+
## Step 5: Install Coder
128128

129-
We will now issue certificates for your Coder instance. Below is a sample
130-
`certificates.yaml` file:
129+
At this point, you're ready to [install](../../setup/installation.md) Coder.
130+
However, to use all of the functionality you set up in this tutorial, use the
131+
following `helm install` command instead:
132+
133+
```console
134+
helm install coder coder/coder --namespace coder \
135+
--version=<CODER_VERSION> \
136+
--set devurls.host="*.exampleCo.com" \
137+
--set ingress.host="coder.exampleCo.com" \
138+
--set ingress.tls.enable=true \
139+
--set ingress.tls.devurlsHostSecretName="coder-devurls-cert" \
140+
--set ingress.tls.hostSecretName="coder-root-cert" \
141+
--set ingress.annotations.cert-manager\.io/cluster-issuer="letsencrypt" \
142+
--wait
143+
```
144+
145+
The cluster-issuer will create the certificates you need, using the values
146+
provided in the `helm install` command for the dev URL and host secret. The
147+
following is a sample `certificates.yaml` file issued for your Coder instance:
131148

132149
```yaml
133150
apiVersion: cert-manager.io/v1alpha2
@@ -162,22 +179,6 @@ spec:
162179
kind: ClusterIssuer
163180
```
164181

165-
At this point, you're ready to [install](../../setup/installation.md) Coder.
166-
However, to use all of the functionality you set up in this tutorial, use the
167-
following `helm install` command instead:
168-
169-
```console
170-
helm install coder coder/coder --namespace coder \
171-
--version=<CODER_VERSION> \
172-
--set devurls.host="*.exampleCo.com" \
173-
--set ingress.host="coder.exampleCo.com" \
174-
--set ingress.tls.enable=true \
175-
--set ingress.tls.devurlsHostSecretName="coder-devurls-cert" \
176-
--set ingress.tls.hostSecretName="coder-root-cert" \
177-
--set ingress.annotations.cert-manager\.io/cluster-issuer="letsencrypt" \
178-
--wait
179-
```
180-
181182
There are additional steps to make sure that your hostname and Dev URLs work.
182183

183184
1. Check the contents of your namespace

0 commit comments

Comments
 (0)