fix(cert): ask for cert for both *.stonegarden.dev and stonegarden.dev

try to bypass letsenrypt rate-limiting for exact set of domains
This commit is contained in:
Vegard Hagen
2024-08-10 18:25:42 +02:00
parent ba2ab6435b
commit 25f977126b
3 changed files with 22 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: cert-stonegarden
namespace: gateway
spec:
dnsNames:
- "*.stonegarden.dev"
- stonegarden.dev
issuerRef:
group: cert-manager.io
kind: ClusterIssuer
name: cloudflare-cluster-issuer
secretName: cert-stonegarden
usages:
- digital signature
- key encipherment

View File

@@ -3,8 +3,8 @@ kind: Gateway
metadata:
name: stonegarden
namespace: gateway
annotations:
cert-manager.io/issuer: cloudflare-issuer
# annotations:
# cert-manager.io/issuer: cloudflare-issuer
spec:
gatewayClassName: cilium
infrastructure:
@@ -29,7 +29,8 @@ spec:
tls:
certificateRefs:
- kind: Secret
name: cloudflare-cert
name: cert-stonegarden
#name: cloudflare-cert
allowedRoutes:
namespaces:
from: All

View File

@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cert-stonegarden.yaml
- gateway-class.yaml
- ns.yaml
- cloudflare-api-token.yaml