Add cert-manager with Cloudflare DNS-01 ClusterIssuers
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# An "umbrella" chart, same pattern as apps/metallb/ and apps/longhorn/:
|
||||
# declares a dependency on the upstream cert-manager chart. Argo CD detects
|
||||
# this as a Helm source because a Chart.yaml exists at this path.
|
||||
#
|
||||
# It also carries two ClusterIssuer templates and one SopsSecret (see
|
||||
# apps/cert-manager/templates/) — cert-manager's own custom resources that
|
||||
# tell it how to actually prove domain ownership and request certificates.
|
||||
# See docs/12-cert-manager.md.
|
||||
apiVersion: v2
|
||||
name: cert-manager-app
|
||||
description: Installs cert-manager plus this cluster's Let's Encrypt ClusterIssuers using Cloudflare DNS-01
|
||||
version: 0.1.0
|
||||
dependencies:
|
||||
- name: cert-manager
|
||||
# A version range rather than an exact pin, so this doesn't silently go
|
||||
# stale. Check https://cert-manager.io/docs/releases/ for the current
|
||||
# release and pin an exact version for a fully reproducible install.
|
||||
version: ">=1.16.0"
|
||||
repository: https://charts.jetstack.io
|
||||
@@ -0,0 +1,23 @@
|
||||
# Let's Encrypt's real, publicly-trusted production environment. Switch an
|
||||
# Ingress to this one only after confirming the same hostname worked
|
||||
# against letsencrypt-staging (see clusterissuer-staging.yaml) — production
|
||||
# has much stricter rate limits, and a repeated mistake here can lock you
|
||||
# out of requesting real certificates for that hostname for a while.
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: letsencrypt-prod
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
spec:
|
||||
acme:
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
email: certs@ahmza.com
|
||||
privateKeySecretRef:
|
||||
name: letsencrypt-prod-account-key
|
||||
solvers:
|
||||
- dns01:
|
||||
cloudflare:
|
||||
apiTokenSecretRef:
|
||||
name: cloudflare-api-token
|
||||
key: api-token
|
||||
@@ -0,0 +1,26 @@
|
||||
# Let's Encrypt's staging environment: unlimited (well, generous) request
|
||||
# limits, but its certificates are not trusted by browsers. Use this one
|
||||
# first to prove the whole DNS-01/Cloudflare flow actually works, without
|
||||
# risking Let's Encrypt's much stricter production rate limits on a typo.
|
||||
#
|
||||
# sync-wave "1" defers this until cert-manager's own chart resources
|
||||
# (wave "0" by default, including its CRDs) are synced and healthy — same
|
||||
# reasoning as apps/metallb/templates/*.
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: letsencrypt-staging
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
spec:
|
||||
acme:
|
||||
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
email: certs@ahmza.com
|
||||
privateKeySecretRef:
|
||||
name: letsencrypt-staging-account-key
|
||||
solvers:
|
||||
- dns01:
|
||||
cloudflare:
|
||||
apiTokenSecretRef:
|
||||
name: cloudflare-api-token
|
||||
key: api-token
|
||||
@@ -0,0 +1,9 @@
|
||||
# Values for the upstream cert-manager chart, nested under `cert-manager:`
|
||||
# (the dependency's name in Chart.yaml).
|
||||
cert-manager:
|
||||
crds:
|
||||
# cert-manager's CRDs (Certificate, ClusterIssuer, Order, Challenge...)
|
||||
# installed as part of this same Helm release, rather than as a
|
||||
# separate manual step. `installCRDs` is the older, deprecated name for
|
||||
# this same setting.
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user