@@ -14,10 +14,10 @@ authority.
14
14
> differently from earlier versions of Coder. Ensure that you're reading the
15
15
> docs applicable to your Coder version.
16
16
17
- This guide will show you how to install cert-manager v1.4.0 and set up your
18
- cluster to issue Let's Encrypt certificates for your Coder installation so that
19
- you can enable HTTPS on your Coder deployment. It will also show you how to
20
- configure your Coder hostname and dev URLs.
17
+ This guide will show you how to install cert-manager and set up your cluster to
18
+ issue Let's Encrypt certificates for your Coder installation so that you can
19
+ enable HTTPS on your Coder deployment. It will also show you how to configure
20
+ your Coder hostname and dev URLs.
21
21
22
22
> We recommend reviewing the official cert-manager
23
23
> [ documentation] ( https://cert-manager.io/docs/ ) if you encounter any issues or
@@ -36,14 +36,44 @@ You must have:
36
36
37
37
## Step 1: Add cert-manager to your Kubernetes cluster
38
38
39
- To add cert-manager to your cluster, run:
39
+ There are two ways to add cert-manager to your Kubernetes cluster.
40
+
41
+ ## Option 1: ` kubectl apply `
42
+
43
+ Add cert-manager to your cluster
44
+ [ using ` kubectl apply ` ] ( https://cert-manager.io/docs/installation/kubectl/ ) by
45
+ running:
40
46
41
47
``` console
42
48
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.7.1/cert-manager.yaml
43
49
```
44
50
45
- More specifics can be found in the
46
- [ cert-manager install documentation] ( https://cert-manager.io/docs/installation/kubernetes/#installing-with-regular-manifests ) .
51
+ ## Option 2: Helm
52
+
53
+ Add cert-manager to your cluster
54
+ [ using Helm] ( https://cert-manager.io/docs/installation/helm/ ) .
55
+
56
+ First, add the Helm repo:
57
+
58
+ ``` console
59
+ helm repo add jetstack https://charts.jetstack.io
60
+ ```
61
+
62
+ Then, install cert-manager and create its namespace (check for the
63
+ [ latest cert-manager version] ( https://cert-manager.io/docs/installation/supported-releases/#installing-with-regular-manifests ) ,
64
+ since they may change)
65
+
66
+ ``` console
67
+ helm install \
68
+ cert-manager jetstack/cert-manager \
69
+ --namespace cert-manager \
70
+ --version v1.7.0 \ # update version if necessary
71
+ --create-namespace \
72
+ --set installCRDs=true
73
+ ```
74
+
75
+ You can find additional information in
76
+ [ cert-manager's installation docs] ( https://cert-manager.io/docs/installation/kubernetes/#installing-with-regular-manifests ) .
47
77
48
78
Once you've started the installation process, verify that all the pods are
49
79
running:
@@ -177,11 +207,14 @@ However, to use all of the functionality you set up in this tutorial, use the
177
207
following command instead :
178
208
179
209
` ` ` console
210
+ # be sure to update the ` stringValue` placeholder with the
211
+ # proper value for your devurlsHostSecretName and hostSecretName
212
+
180
213
helm upgrade --install coder coder/coder --namespace coder \
181
214
--version=<CODER_VERSION> \
182
215
--set coderd.devurlsHost="*.coder.example.com" \
183
- --set coderd.tls.devurlsHostSecretName="coder-certs" \
184
- --set coderd.tls.hostSecretName="coder-certs" \
216
+ --set coderd.tls.devurlsHostSecretName="coder-certs-stringValue " \
217
+ --set coderd.tls.hostSecretName="coder-certs-stringValue " \
185
218
--wait
186
219
```
187
220
0 commit comments