Skip to content

chore: update installation step for SSL certs guide #449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions guides/ssl-certificates/cloudDNS.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,27 @@ If successful, you'll see a response similar to:
clusterissuer.cert-manager.io/letsencrypt created
```

## Step 5: Create a certificates.yaml file and apply it
## Step 5: Install Coder

We will now issue certificates for your Coder instance. Below is a sample
`certificates.yaml` file:
At this point, you're ready to [install](../../setup/installation.md) Coder.
However, to use all of the functionality you set up in this tutorial, use the
following `helm install` command instead:

```console
helm install coder coder/coder --namespace coder \
--version=<CODER_VERSION> \
--set devurls.host="*.exampleCo.com" \
--set ingress.host="coder.exampleCo.com" \
--set ingress.tls.enable=true \
--set ingress.tls.devurlsHostSecretName="coder-devurls-cert" \
--set ingress.tls.hostSecretName="coder-root-cert" \
--set ingress.annotations.cert-manager\.io/cluster-issuer="letsencrypt" \
--wait
```

The cluster-issuer will create the certificates you need, using the values
provided in the `helm install` command for the dev URL and host secret. The
following is a sample `certificates.yaml` file issued for your Coder instance:

```yaml
apiVersion: cert-manager.io/v1alpha2
Expand Down Expand Up @@ -162,22 +179,6 @@ spec:
kind: ClusterIssuer
```

At this point, you're ready to [install](../../setup/installation.md) Coder.
However, to use all of the functionality you set up in this tutorial, use the
following `helm install` command instead:

```console
helm install coder coder/coder --namespace coder \
--version=<CODER_VERSION> \
--set devurls.host="*.exampleCo.com" \
--set ingress.host="coder.exampleCo.com" \
--set ingress.tls.enable=true \
--set ingress.tls.devurlsHostSecretName="coder-devurls-cert" \
--set ingress.tls.hostSecretName="coder-root-cert" \
--set ingress.annotations.cert-manager\.io/cluster-issuer="letsencrypt" \
--wait
```

There are additional steps to make sure that your hostname and Dev URLs work.

1. Check the contents of your namespace
Expand Down