Create Cluster Issuer
Create a YAML file clusterissuer-letsencrypt.
nano clusterissuer-letsencrypt.yamlCopy 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: nginxAfter 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.yamlLast updated
