# Create Cluster Issuer

Create a YAML file clusterissuer-letsencrypt.

```bash
nano clusterissuer-letsencrypt.yaml
```

Copy and paste the following YAML contents.

```yaml
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-prod
spec:
  acme:
    email: dummy@example.com
    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.

```bash
kubectl apply -f clusterissuer-letsencrypt.yaml
```
