feat: add wildcard cert

This commit is contained in:
Devin Buhl committed 2021-04-14 12:40:15 -04:00
1 parent f49c4d89b4
commit 94b3c94f61
6 files changed
+30 -1

No files matched your search

+2 -1
View File
@@ -135,12 +135,13 @@ kubectl --kubeconfig=./kubeconfig create secret generic sops-gpg \
--from-file=sops.asc=/dev/stdin
```
3. Update files using `envsubst` or by updating them manually
3. Update files using `envsubst` or by updating the files listed below manually
```sh
export BOOTSTRAP_GITHUB_REPOSITORY="k8s-at-home/home-cluster"
export BOOTSTRAP_METALLB_LB_RANGE="169.254.1.10-169.254.1.20"
export BOOTSTRAP_DOMAIN="k8s-at-home.com"
export BOOTSTRAP_DOMAIN_CERT="k8s-at-home"
export BOOTSTRAP_CLOUDFLARE_TOKEN="dsKq41iLAbXE37GV"
envsubst < ./.sops.yaml
+4
View File
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- networking
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- wildcard-certificate
@@ -0,0 +1,15 @@
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: "${SECRET_DOMAIN_CERT}"
namespace: networking
spec:
secretName: "${SECRET_DOMAIN_CERT}-tls"
issuerRef:
name: letsencrypt-production
kind: ClusterIssuer
commonName: "${SECRET_DOMAIN}"
dnsNames:
- "${SECRET_DOMAIN}"
- "*.${SECRET_DOMAIN}"
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- certificate.yaml
+1
View File
@@ -6,4 +6,5 @@ metadata:
namespace: flux-system
stringData:
SECRET_DOMAIN: $BOOTSTRAP_DOMAIN
SECRET_DOMAIN_CERT: $BOOTSTRAP_DOMAIN_CERT
SECRET_CLOUDFLARE_EMAIL: $BOOTSTRAP_CLOUDFLARE_EMAIL