Skip to content

Commit 4dfccf7

Browse files
authored
Merge pull request #1601 from sagarc03/master
add letsencrypt issuer example
2 parents 8dce804 + 8e398a6 commit 4dfccf7

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

examples/kustomization_user_deploy/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ In more complex use cases, you may want to deploy to multiple namespaces with a
5151

5252
For a full demo see the [multiple-namespaces](multiple-namespaces/) example.
5353

54+
### Using Letsencrypt with cert-manager
55+
56+
You can use letsencrypt issuer to issue tls certificate see [example](https://doc.traefik.io/traefik/user-guides/cert-manager/). You need to create a issuer type of `ClusterIssuer` to make is available in all namespaces, unlike in the traefik example. Also note that the `server` in the example is a stagging server, you would need a prod server to use in, well, production. The prod server link can be found at `https://letsencrypt.org/getting-started/`
57+
58+
For a full demo see the [letsencrypt](letsencrypt/)
59+
5460
## Debugging
5561

5662
To check the existing kustomization, you can run the following command:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- letsencrypt.yaml
6+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: cert-manager.io/v1
2+
kind: ClusterIssuer
3+
metadata:
4+
name: letsencrypt
5+
namespace: cert-manager
6+
spec:
7+
acme:
8+
email: <youremail@domain.com> <--- change this to your email
9+
server: https://acme-v02.api.letsencrypt.org/directory | https://acme-staging-v02.api.letsencrypt.org/directory <-- pick one
10+
privateKeySecretRef:
11+
name: letsencrypt-account-key
12+
solvers:
13+
- http01:
14+
ingress:
15+
ingressClassName: traefik

0 commit comments

Comments
 (0)