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

View File

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