mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-02 02:48:02 +00:00
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:
17
k8s/infra/network/gateway/cert-stonegarden.yaml
Normal file
17
k8s/infra/network/gateway/cert-stonegarden.yaml
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user