Create Cluster Issuer
Create a YAML file clusterissuer-letsencrypt.
nano clusterissuer-letsencrypt.yaml
Copy and paste the following YAML contents.
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
email: [email protected]
privateKeySecretRef:
name: letsencrypt-prod
server: https://acme-v02.api.letsencrypt.org/directory
solvers:
- http01:
ingress:
class: nginx
After pasting the syntax, save the file by pressing Ctrl + O, then press the Enter key and exit the editor by pressing Ctrl + X. The next step is to apply for a cluster issuer.
kubectl apply -f clusterissuer-letsencrypt.yaml
Last updated