Skip to content

Instantly share code, notes, and snippets.

@Yitaek
Created August 9, 2020 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yitaek/1d4e43d64cdfcc5f855ab3621f211a06 to your computer and use it in GitHub Desktop.
Save Yitaek/1d4e43d64cdfcc5f855ab3621f211a06 to your computer and use it in GitHub Desktop.
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
# You must replace this email address with your own.
# Let's Encrypt will use this to contact you about expiring
# certificates, and issues related to your account.
email: user@example.com
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
# Secret resource used to store the account's private key.
name: issuer-account-key
# Add a single challenge solver, HTTP01 using nginx
solvers:
- dns01:
cloudflare:
email: user@example.com
apiTokenSecretRef:
name: cloudflare
key: dns-token
selector:
dnsZones:
- 'example.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment