-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from evilmartians/0.5.0-preview-apps-infrastru…
…cture preview-apps-infrastructure: update to 0.5.0
- Loading branch information
Showing
5 changed files
with
55 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 | ||
appVersion: "1.0.0" | ||
description: Creating infrastructure resources for preview apps | ||
name: preview-apps-infrastructure | ||
version: 0.5.0 | ||
maintainers: | ||
- name: Ilya Cherepanov | ||
email: [email protected] | ||
|
||
dependencies: | ||
- name: kubernetes-replicator | ||
repository: https://helm.mittwald.de | ||
version: 2.10.0 |
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
charts/preview-apps-infrastructure/templates/certificate.yaml
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,17 @@ | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: {{ .Values.certificate.name }} | ||
spec: | ||
secretName: {{ .Values.certificate.name }} | ||
issuerRef: | ||
kind: Issuer | ||
name: {{ .Values.issuer.name }} | ||
commonName: "*.{{ .Values.dnsZone }}" | ||
dnsNames: | ||
- "*.{{ .Values.dnsZone }}" | ||
secretTemplate: | ||
annotations: | ||
replicator.v1.mittwald.de/replication-allowed: "true" | ||
replicator.v1.mittwald.de/replication-allowed-namespaces: {{ .Values.certificate.allowedNamespaces }} |
File renamed without changes.
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,24 @@ | ||
# DNS zone where preview apps will be created | ||
dnsZone: "preview.sandbox.evilmartians.net" | ||
|
||
# Certificate that will be used by all preview apps | ||
# Corresponding tls secret will have the same name | ||
certificate: | ||
name: preview-apps-common-tls | ||
# you will be able replicate certificate only to these namespaces | ||
allowedNamespaces: "preview-pr-[0-9]+" | ||
|
||
# Cert-manager issuer | ||
issuer: | ||
name: preview-apps | ||
email: [email protected] | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
# DNS-01 challenge is the only way to get wildcard certificate | ||
dns01: | ||
route53: | ||
region: us-east-1 | ||
hostedZoneID: Z0152EXAMPLE | ||
accessKeyID: AKIA5EXAMPLE | ||
secretAccessKeySecretRef: | ||
name: route53-secret | ||
key: secret-access-key |