CI / build (push) Failing after 0s
The Gateway, certificate and routes move from ins-landing.containerverse.dev to the new host. The page sets og:url to it and is marked noindex, since it is shared through links and QR codes only. The infinitynetworks.com.my zone is hosted at secure-sys.com, not on our Cloudflare, so the host needs a plain A record to the cluster and visitors connect directly. The handover lists what the cluster manager must confirm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfjzaeuedkpHBD7LkFm
126 lines
3.2 KiB
YAML
126 lines
3.2 KiB
YAML
# Served by Traefik through the Gateway API (GatewayClass `traefik`), the same way as dynamic-qr.
|
|
# The infinitynetworks.com.my zone is not on Cloudflare: visitors connect straight to the cluster.
|
|
# Port 8443 is Traefik's `websecure` entry point (host port 443), 8000 its `web` entry point
|
|
# (host port 80), which redirects to HTTPS and answers Let's Encrypt's HTTP-01 check.
|
|
#
|
|
# Let's Encrypt certificate via cert-manager (ClusterIssuer `lets-encrypt`, HTTP-01). The solver
|
|
# pod runs in this namespace and is allowed in by k8s/60-network-policy.yaml.
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: ins-landing-page-tls
|
|
namespace: ins-landing-page
|
|
spec:
|
|
secretName: ins-landing-page-tls
|
|
issuerRef:
|
|
group: cert-manager.io
|
|
kind: ClusterIssuer
|
|
name: lets-encrypt
|
|
dnsNames:
|
|
- hospitality.infinitynetworks.com.my
|
|
usages:
|
|
- digital signature
|
|
- key encipherment
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: Gateway
|
|
metadata:
|
|
name: ins-landing-page
|
|
namespace: ins-landing-page
|
|
spec:
|
|
gatewayClassName: traefik
|
|
listeners:
|
|
- name: http
|
|
protocol: HTTP
|
|
port: 8000
|
|
allowedRoutes:
|
|
namespaces:
|
|
from: Same
|
|
- name: websecure
|
|
protocol: HTTPS
|
|
port: 8443
|
|
hostname: hospitality.infinitynetworks.com.my
|
|
tls:
|
|
mode: Terminate
|
|
certificateRefs:
|
|
- kind: Secret
|
|
group: ""
|
|
name: ins-landing-page-tls
|
|
allowedRoutes:
|
|
namespaces:
|
|
from: Same
|
|
---
|
|
# Plain HTTP: permanent redirect to HTTPS.
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: https-redirect
|
|
namespace: ins-landing-page
|
|
spec:
|
|
parentRefs:
|
|
- name: ins-landing-page
|
|
sectionName: http
|
|
hostnames:
|
|
- hospitality.infinitynetworks.com.my
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
filters:
|
|
- type: RequestRedirect
|
|
requestRedirect:
|
|
scheme: https
|
|
port: 443
|
|
statusCode: 301
|
|
---
|
|
# The lead form is public; the honeypot only stops naive bots. Limit form posts per visitor so a
|
|
# script cannot fill the volume. depth: 1 takes the right-most X-Forwarded-For entry. Traefik keeps
|
|
# that header only from Cloudflare's ranges; for a direct visitor it writes the visitor's own IP.
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: lead-rate-limit
|
|
namespace: ins-landing-page
|
|
spec:
|
|
rateLimit:
|
|
average: 5
|
|
period: 1m
|
|
burst: 5
|
|
sourceCriterion:
|
|
ipStrategy:
|
|
depth: 1
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: ins-landing-page
|
|
namespace: ins-landing-page
|
|
spec:
|
|
parentRefs:
|
|
- name: ins-landing-page
|
|
sectionName: websecure
|
|
hostnames:
|
|
- hospitality.infinitynetworks.com.my
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: Exact
|
|
value: /api/leads
|
|
filters:
|
|
- type: ExtensionRef
|
|
extensionRef:
|
|
group: traefik.io
|
|
kind: Middleware
|
|
name: lead-rate-limit
|
|
backendRefs:
|
|
- name: ins-landing-page
|
|
port: 3000
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
backendRefs:
|
|
- name: ins-landing-page
|
|
port: 3000
|