Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

add replacement command for le-prod-issuer #92

Merged
merged 1 commit into from
Oct 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 2 additions & 30 deletions docs/deployment/required/cert-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,38 +224,10 @@ kubectl delete -f deployments/cert-manager/example-com-staging-tls.yml --namespa
The setup will be similar to the staging environment. Copy the staging issuer file:
```bash
cp deployments/cert-manager/letsencrypt-staging-issuer.yml deployments/cert-manager/letsencrypt-production-issuer.yml
nano deployments/cert-manager/letsencrypt-production-issuer.yml
sed -i 's/letsencrypt-staging/letsencrypt-production/g' deployments/cert-manager/letsencrypt-production-issuer.yml
sed -i 's/-staging-/-/g' deployments/cert-manager/letsencrypt-production-issuer.yml
```

Edit the file and replace the following values:

```yaml linenums="1"
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-production #(1)!
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory #(2)!
email: your_email_should_already_be_here
privateKeySecretRef:
name: letsencrypt-production #(3)!
solvers:
- dns01:
cloudflare:
email: your_email_should_already_be_here
apiTokenSecretRef:
name: cloudflare-token-secret
key: cloudflare-token
selector:
dnsZones:
- your_dns_names_should_already_be_here
```

1. Replace `letsencrypt-staging` with `letsencrypt-production`.
2. Replace the old staging endpoint with the new one: `https://acme-v02.api.letsencrypt.org/directory`.
3. Replace `letsencrypt-staging` with `letsencrypt-production`.

Apply the issuer to the cluster with the following command:
```bash
kubectl apply -f deployments/cert-manager/letsencrypt-production-issuer.yml
Expand Down