Skip to content

Instantly share code, notes, and snippets.

@lvnilesh
Last active November 17, 2019 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lvnilesh/d0f8ca6b737297df083b861e57f614db to your computer and use it in GitHub Desktop.
Save lvnilesh/d0f8ca6b737297df083b861e57f614db to your computer and use it in GitHub Desktop.
cluster issuer
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
namespace: cert-manager
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: nilesh@cloudgeni.us
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
# Secret resource used to store the account's private key.
name: letsencrypt-prod
# Add a single challenge solver, HTTP01 using nginx
solvers:
- http01:
ingress:
class: nginx
- selector:
matchLabels:
use-cloudflare-solver: "true"
dns01:
cloudflare:
email: nilesh@cloudgeni.us
apiKeySecretRef:
name: cloudflare-api-key
key: api-key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment