Resequence steps and add cert-manager
This commit is contained in:
18
06-cert-manager/README.md
Normal file
18
06-cert-manager/README.md
Normal file
@ -0,0 +1,18 @@
|
||||
# 06 | Cert Manager
|
||||
|
||||
https://cert-manager.io/docs/installation/kubectl/
|
||||
|
||||
Install cert-manager - check for latest version.
|
||||
|
||||
```yaml
|
||||
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.3/cert-manager.yaml
|
||||
```
|
||||
|
||||
After cert manager is installed, create the Let's Encrypt issuer:
|
||||
|
||||
```yaml
|
||||
|
||||
# Be sure to edit the file and set the production URL if not a test cluster
|
||||
kubectl apply -f lets-encrypt-issuer.yaml
|
||||
```
|
||||
|
23
06-cert-manager/lets-encrypt-issuer.yaml
Normal file
23
06-cert-manager/lets-encrypt-issuer.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Issuer
|
||||
metadata:
|
||||
name: letsencrypt
|
||||
namespace: default
|
||||
spec:
|
||||
acme:
|
||||
# The ACME server URL
|
||||
# production is https://acme-v02.api.letsencrypt.org/directory
|
||||
# stagiong is https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
# Email address used for ACME registration
|
||||
email: himself@stevenpolley.net
|
||||
# Name of a secret used to store the ACME account private key
|
||||
privateKeySecretRef:
|
||||
name: letsencrypt
|
||||
# Enable the HTTP-01 challenge provider
|
||||
solvers:
|
||||
# An empty 'selector' means that this solver matches all domains
|
||||
- selector: {}
|
||||
http01:
|
||||
ingress:
|
||||
ingressClassName: nginx
|
Reference in New Issue
Block a user