diff --git a/charts/cert-manager-issuer/.helmignore b/charts/cert-manager-issuer/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/cert-manager-issuer/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/cert-manager-issuer/Chart.yaml b/charts/cert-manager-issuer/Chart.yaml new file mode 100644 index 0000000..0b5cb50 --- /dev/null +++ b/charts/cert-manager-issuer/Chart.yaml @@ -0,0 +1,24 @@ +apiVersion: v2 +name: explorer +description: A Helm chart for cert-manager issuer + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.0.1 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "main" diff --git a/charts/cert-manager-issuer/templates/00-lets-encrypt-issuer.yaml b/charts/cert-manager-issuer/templates/00-lets-encrypt-issuer.yaml new file mode 100644 index 0000000..0f4e209 --- /dev/null +++ b/charts/cert-manager-issuer/templates/00-lets-encrypt-issuer.yaml @@ -0,0 +1,37 @@ +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: letsencrypt-prod +spec: + acme: + server: https://acme-v02.api.letsencrypt.org/directory + email: {{ $.Values.acme.email }} + privateKeySecretRef: + name: letsencrypt-production + solvers: + - selector: + dnsZones: + - {{ $.Values.dnsZone }} + dns01: + route53: + region: {{ $.Values.region }} + role: {{ $.Values.role }} +--- +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: letsencrypt-staging +spec: + acme: + server: https://acme-staging-v02.api.letsencrypt.org/directory + email: {{ $.Values.dnsZone }} + privateKeySecretRef: + name: letsencrypt-staging + solvers: + - selector: + dnsZones: + - "example.com" + dns01: + route53: + region: {{ $.Values.region }} + role: {{ $.Values.role }} diff --git a/charts/cert-manager-issuer/values.yaml b/charts/cert-manager-issuer/values.yaml new file mode 100644 index 0000000..4722857 --- /dev/null +++ b/charts/cert-manager-issuer/values.yaml @@ -0,0 +1,10 @@ +# Default values for cert-manager-issuer. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +region: us-east-1 +dnsZone: nowhere.com +role: nobody + +acme: + email: nobody@nowhere.com