Skip to content

Commit

Permalink
chore: add generic cluster issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
foo0x29a committed Aug 11, 2023
1 parent c071074 commit 046b9d0
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/cert-manager-issuer/.helmignore
Original file line number Diff line number Diff line change
@@ -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/
24 changes: 24 additions & 0 deletions charts/cert-manager-issuer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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"
37 changes: 37 additions & 0 deletions charts/cert-manager-issuer/templates/00-lets-encrypt-issuer.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
10 changes: 10 additions & 0 deletions charts/cert-manager-issuer/values.yaml
Original file line number Diff line number Diff line change
@@ -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: [email protected]

0 comments on commit 046b9d0

Please sign in to comment.