using wildcard cert

This commit is contained in:
ari committed 2023-05-03 03:01:19 +00:00
1 parent 8435d6f9c1
commit 9c2f5f344f
3 files changed
+26

No files matched your search

@@ -8,10 +8,33 @@
# global: map (should be .global)
# port: int = 80
# path: str = "/"
# useWildCard: bool = False
# middleware: str = "https-redirect"
#
{{ if .global.tls.enabled }}
{{ if .useWildCard }}
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: {{ printf "%s-%s" $value.name $ekey | lower | replace "_" "-" }}
namespace: {{ $secretsData.namespace }}
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: apps-ingresses
target:
name: tls-{{.prefix}}.{{.global.domain}}
creationPolicy: Owner
deletionPolicy: Delete
data:
- secretKey: cloudflare-wildcard.{{ .Values.global.domain }}
remoteRef:
key: tls.key
property: tls.key
{{ else }}
---
apiVersion: cert-manager.io/v1
kind: Certificate
@@ -27,6 +50,7 @@ spec:
dnsNames:
- "{{.prefix}}.{{.global.domain}}"
{{ end }}
{{ end }}
---
apiVersion: networking.k8s.io/v1
+1
View File
@@ -27,6 +27,7 @@ services:
service: "dummy-app"
namespace: "apps-ingresses"
middleware: "apps-ingresses-chain-authentik"
useWildCard: true
- prefix: "nextcloud"
service: "nextcloud"
namespace: "apps-nextcloud"
+1
View File
@@ -130,6 +130,7 @@ infrastructureCharts:
secrets:
ingresses:
enableClusterStore: true
namespace: apps-ingresses
secrets: {}
database: