-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v2 | ||
name: cert-manager-google | ||
version: 0.1.0 | ||
description: "Installs Cert-Manager an Issuer and a Certificate on google cloud" | ||
|
||
# The key part: we declare the dependency on the official cert-manager chart: | ||
dependencies: | ||
- name: cert-manager | ||
version: 1.8.0 | ||
repository: "https://charts.jetstack.io" | ||
condition: certManager.enabled # so we can toggle it on/off | ||
tags: | ||
- certManager | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{ required "A valid .Values.projectName is required!" .Values.projectName }} | ||
{{ required "A valid .Values.letsEncryptEmail is required!" .Values.letsEncryptEmail }} | ||
|
||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: {{ .Values.issuerName }} | ||
spec: | ||
acme: | ||
server: {{ .Values.letsEncryptServer }} | ||
email: {{ .Values.letsEncryptEmail }} | ||
privateKeySecretRef: | ||
name: {{ .Values.issuerName }} | ||
solvers: | ||
- dns01: | ||
cloudDNS: | ||
project: {{ .Values.projectName }} | ||
serviceAccountSecretRef: | ||
name: {{ .Values.cloudDnsServiceAccountSecret }} | ||
key: {{ .Values.googleSecretFilename }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: {{ .Values.environment }}-cert | ||
spec: | ||
secretName: {{ .Values.environment }}-cert | ||
renewBefore: 720h | ||
dnsNames: | ||
{{- range .Values.dnsHostnames }} | ||
- {{ . }} | ||
{{- end }} | ||
issuerRef: | ||
name: {{ .Values.issuerName }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
issuerName: letsencrypt-issuer | ||
letsEncryptServer: https://acme-v02.api.letsencrypt.org/directory | ||
letsEncryptEmail: "" | ||
projectName: "" | ||
environment: "" | ||
dnsHostnames: [] | ||
installCRDs: true | ||
certManager: | ||
enabled: true | ||
installCRDs: true | ||
|
||
# You can override anything from the cert-manager chart’s values here, | ||
# for example the default namespace, extraArgs, etc. | ||
# example: | ||
ingressShim.defaultIssuerName: letsencrypt-issuer | ||
ingressShim.defaultIssuerKind: ClusterIssuer |