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
This commit is contained in:
1 parent
e969870fdf
commit
6244f9595a
4 files changed
+22
-17
No files matched your search
@@ -28,12 +28,12 @@ Environment: `DATABASE_URL` (required), `PORT` (default `3000`). Tests create th
|
|||||||
- `20-postgres.yaml`: Postgres 18 StatefulSet with a Longhorn PVC (2 Gi, ReadWriteOnce) and a headless Service `postgres`.
|
- `20-postgres.yaml`: Postgres 18 StatefulSet with a Longhorn PVC (2 Gi, ReadWriteOnce) and a headless Service `postgres`.
|
||||||
- `40-app.yaml`: Service and Deployment. The app waits in an init container until Postgres answers, then creates the `leads` table if it is missing. It runs as uid 1000 with a read-only root filesystem.
|
- `40-app.yaml`: Service and Deployment. The app waits in an init container until Postgres answers, then creates the `leads` table if it is missing. It runs as uid 1000 with a read-only root filesystem.
|
||||||
- `50-gateway.yaml`:
|
- `50-gateway.yaml`:
|
||||||
- A Let's Encrypt Certificate and a Traefik Gateway for `ins-landing.containerverse.dev`.
|
- A Let's Encrypt Certificate and a Traefik Gateway for `hospitality.infinitynetworks.com.my`.
|
||||||
- HTTP redirects to HTTPS.
|
- HTTP redirects to HTTPS.
|
||||||
- `POST /api/leads` goes through the `lead-rate-limit` middleware: 5 per minute per visitor, burst 5, keyed on the Cloudflare visitor IP.
|
- `POST /api/leads` goes through the `lead-rate-limit` middleware: 5 per minute per visitor, burst 5, keyed on the visitor IP.
|
||||||
- `60-network-policy.yaml`: denies all ingress except Traefik to the app (port 3000), the app to Postgres (5432), and Traefik to cert-manager's HTTP-01 solver.
|
- `60-network-policy.yaml`: denies all ingress except Traefik to the app (port 3000), the app to Postgres (5432), and Traefik to cert-manager's HTTP-01 solver.
|
||||||
|
|
||||||
Prerequisite: DNS for `ins-landing.containerverse.dev` points at the cluster through Cloudflare, like the other `containerverse.dev` hosts.
|
Prerequisite: an A record for `hospitality.infinitynetworks.com.my` points at the cluster's public IP. The zone is not on Cloudflare; see `docs/deployment-handover.md`.
|
||||||
|
|
||||||
First install, on the microk8s host (`k` = `microk8s kubectl`):
|
First install, on the microk8s host (`k` = `microk8s kubectl`):
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ For: cluster manager. Date: 2026-12-01.
|
|||||||
|
|
||||||
A single landing page for Infinity Networks Security's hotel technology services, with a lead form. Visitors submit name, work email, phone, company and the service they're interested in. Leads are stored in PostgreSQL and read by the sales team in DBeaver or as a CSV export. There is no admin UI.
|
A single landing page for Infinity Networks Security's hotel technology services, with a lead form. Visitors submit name, work email, phone, company and the service they're interested in. Leads are stored in PostgreSQL and read by the sales team in DBeaver or as a CSV export. There is no admin UI.
|
||||||
|
|
||||||
- Public URL: `https://ins-landing.containerverse.dev`
|
- Public URL: `https://hospitality.infinitynetworks.com.my`
|
||||||
- Repo: `gitea.containerverse.dev/ngqile/ins-landing-page`, moving to `solvway/ins-landing-page`
|
- Repo: `gitea.containerverse.dev/ngqile/ins-landing-page`, moving to `solvway/ins-landing-page`
|
||||||
- App: Node 22, one dependency (`pg`), image `gitea.containerverse.dev/solvway/ins-landing-page:ins-landing-page-prd-latest`
|
- App: Node 22, one dependency (`pg`), image `gitea.containerverse.dev/solvway/ins-landing-page:ins-landing-page-prd-latest`
|
||||||
- Deploy pattern: the same as **dynamic-qr** (Traefik Gateway API, cert-manager, Longhorn, Calico, `krrd.sh` rollout from CI)
|
- Deploy pattern: the same as **dynamic-qr** (Traefik Gateway API, cert-manager, Longhorn, Calico, `krrd.sh` rollout from CI)
|
||||||
@@ -32,7 +32,10 @@ The app creates its `leads` table itself on first start. There is no migration s
|
|||||||
|
|
||||||
1. **Repo transfer.** Move the repo to the `solvway` org. CI needs the org secrets `PACKAGE_USER`, `PACKAGE_RW_KEY`, `DRONECICD_SSH_USERNAME`, `DRONECICD_SSH_HOST`, `DRONECICD_SSH_KEY`, `TELEGRAM_TOKEN`, `TELEGRAM_TO` and, optionally, `MICROSOFT_TEAMS_WEBHOOK_URL`: the same set as dynamic-qr.
|
1. **Repo transfer.** Move the repo to the `solvway` org. CI needs the org secrets `PACKAGE_USER`, `PACKAGE_RW_KEY`, `DRONECICD_SSH_USERNAME`, `DRONECICD_SSH_HOST`, `DRONECICD_SSH_KEY`, `TELEGRAM_TOKEN`, `TELEGRAM_TO` and, optionally, `MICROSOFT_TEAMS_WEBHOOK_URL`: the same set as dynamic-qr.
|
||||||
2. **Build the first image, after the transfer.** The code is already on `main`. The CI runs from before the transfer fail because the org secrets aren't available; ignore them. After the transfer, re-run the latest CI run on `main`, or push any commit. CI runs the tests against a throwaway Postgres, then builds and pushes the image. On that first run the rollout step finds no Deployment and skips itself; that's expected.
|
2. **Build the first image, after the transfer.** The code is already on `main`. The CI runs from before the transfer fail because the org secrets aren't available; ignore them. After the transfer, re-run the latest CI run on `main`, or push any commit. CI runs the tests against a throwaway Postgres, then builds and pushes the image. On that first run the rollout step finds no Deployment and skips itself; that's expected.
|
||||||
3. **DNS.** Add `ins-landing.containerverse.dev` in Cloudflare, pointing at the cluster like the other `containerverse.dev` hosts (proxied).
|
3. **DNS. Not on Cloudflare.** The `infinitynetworks.com.my` zone is hosted at `secure-sys.com` (ns1/ns2.secure-sys.com) and managed by Infinity's domain contact, not in our Cloudflare. A CNAME to a Cloudflare-proxied `containerverse.dev` host does not work (Cloudflare refuses another account's hostname, error 1014). So:
|
||||||
|
- The domain contact adds an **A record** `hospitality` pointing at the cluster's public IP. Please send them that IP.
|
||||||
|
- Visitors then reach Traefik directly. Please confirm that ports 80 and 443 on that IP accept traffic from anywhere, not only from Cloudflare's ranges. Port 80 must be open for the Let's Encrypt HTTP-01 check and the HTTPS redirect.
|
||||||
|
- Without Cloudflare there is no Cloudflare DDoS protection or caching in front of this host. The per-visitor form rate limit still applies (see `k8s/50-gateway.yaml`).
|
||||||
4. **Backups. Please confirm before go-live.** The leads are the only business data, and they live only on the `ins-landing-page-postgres` volume. These manifests set up no backup. Either confirm that a Longhorn recurring backup covers this volume, or schedule a `pg_dump`.
|
4. **Backups. Please confirm before go-live.** The leads are the only business data, and they live only on the `ins-landing-page-postgres` volume. These manifests set up no backup. Either confirm that a Longhorn recurring backup covers this volume, or schedule a `pg_dump`.
|
||||||
|
|
||||||
## First install
|
## First install
|
||||||
@@ -61,8 +64,8 @@ k -n ins-landing-page rollout status deployment/ins-landing-page
|
|||||||
k -n ins-landing-page get pods # postgres-0 and ins-landing-page-… Running
|
k -n ins-landing-page get pods # postgres-0 and ins-landing-page-… Running
|
||||||
k -n ins-landing-page get certificate # ins-landing-page-tls READY=True (can take a minute)
|
k -n ins-landing-page get certificate # ins-landing-page-tls READY=True (can take a minute)
|
||||||
k -n ins-landing-page logs deploy/ins-landing-page # "listening on :3000"
|
k -n ins-landing-page logs deploy/ins-landing-page # "listening on :3000"
|
||||||
curl -sI https://ins-landing.containerverse.dev/ # HTTP/2 200
|
curl -sI https://hospitality.infinitynetworks.com.my/ # HTTP/2 200
|
||||||
curl -sI http://ins-landing.containerverse.dev/ # 301 to https
|
curl -sI http://hospitality.infinitynetworks.com.my/ # 301 to https
|
||||||
```
|
```
|
||||||
|
|
||||||
To check the form without creating a lead, submit it with a Gmail address. The page shows "Please use your work email…" and nothing is stored. A real test submission writes a row. If you make one, delete it afterwards, or tell sales to ignore it.
|
To check the form without creating a lead, submit it with a Gmail address. The page shows "Please use your work email…" and nothing is stored. A real test submission writes a row. If you make one, delete it afterwards, or tell sales to ignore it.
|
||||||
|
|||||||
+9
-8
@@ -1,6 +1,7 @@
|
|||||||
# Served by Traefik through the Gateway API (GatewayClass `traefik`), the same way as dynamic-qr.
|
# Served by Traefik through the Gateway API (GatewayClass `traefik`), the same way as dynamic-qr.
|
||||||
# Cloudflare connects to the origin over HTTPS: port 8443 is Traefik's `websecure` entry point
|
# The infinitynetworks.com.my zone is not on Cloudflare: visitors connect straight to the cluster.
|
||||||
# (host port 443), 8000 its `web` entry point (host port 80), which only redirects to HTTPS.
|
# 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
|
# 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.
|
# pod runs in this namespace and is allowed in by k8s/60-network-policy.yaml.
|
||||||
@@ -16,7 +17,7 @@ spec:
|
|||||||
kind: ClusterIssuer
|
kind: ClusterIssuer
|
||||||
name: lets-encrypt
|
name: lets-encrypt
|
||||||
dnsNames:
|
dnsNames:
|
||||||
- ins-landing.containerverse.dev
|
- hospitality.infinitynetworks.com.my
|
||||||
usages:
|
usages:
|
||||||
- digital signature
|
- digital signature
|
||||||
- key encipherment
|
- key encipherment
|
||||||
@@ -38,7 +39,7 @@ spec:
|
|||||||
- name: websecure
|
- name: websecure
|
||||||
protocol: HTTPS
|
protocol: HTTPS
|
||||||
port: 8443
|
port: 8443
|
||||||
hostname: ins-landing.containerverse.dev
|
hostname: hospitality.infinitynetworks.com.my
|
||||||
tls:
|
tls:
|
||||||
mode: Terminate
|
mode: Terminate
|
||||||
certificateRefs:
|
certificateRefs:
|
||||||
@@ -60,7 +61,7 @@ spec:
|
|||||||
- name: ins-landing-page
|
- name: ins-landing-page
|
||||||
sectionName: http
|
sectionName: http
|
||||||
hostnames:
|
hostnames:
|
||||||
- ins-landing.containerverse.dev
|
- hospitality.infinitynetworks.com.my
|
||||||
rules:
|
rules:
|
||||||
- matches:
|
- matches:
|
||||||
- path:
|
- path:
|
||||||
@@ -74,8 +75,8 @@ spec:
|
|||||||
statusCode: 301
|
statusCode: 301
|
||||||
---
|
---
|
||||||
# The lead form is public; the honeypot only stops naive bots. Limit form posts per visitor so a
|
# 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, which
|
# script cannot fill the volume. depth: 1 takes the right-most X-Forwarded-For entry. Traefik keeps
|
||||||
# Cloudflare sets to the visitor (Traefik keeps that header only from Cloudflare's ranges).
|
# that header only from Cloudflare's ranges; for a direct visitor it writes the visitor's own IP.
|
||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: Middleware
|
kind: Middleware
|
||||||
metadata:
|
metadata:
|
||||||
@@ -100,7 +101,7 @@ spec:
|
|||||||
- name: ins-landing-page
|
- name: ins-landing-page
|
||||||
sectionName: websecure
|
sectionName: websecure
|
||||||
hostnames:
|
hostnames:
|
||||||
- ins-landing.containerverse.dev
|
- hospitality.infinitynetworks.com.my
|
||||||
rules:
|
rules:
|
||||||
- matches:
|
- matches:
|
||||||
- path:
|
- path:
|
||||||
|
|||||||
+3
-2
@@ -8,8 +8,9 @@
|
|||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:title" content="One partner for the connected hotel | Infinity Networks Security">
|
<meta property="og:title" content="One partner for the connected hotel | Infinity Networks Security">
|
||||||
<meta property="og:description" content="WiFi, cloud phones, IPTV, digital signage and QR door locks for hotels, managed by one local team.">
|
<meta property="og:description" content="WiFi, cloud phones, IPTV, digital signage and QR door locks for hotels, managed by one local team.">
|
||||||
<!-- [PLACEHOLDER] set og:url to the live page address -->
|
<!-- shared through links and QR codes only, so kept out of search results -->
|
||||||
<meta property="og:url" content="https://www.infinitynetworks.com.my/">
|
<meta name="robots" content="noindex">
|
||||||
|
<meta property="og:url" content="https://hospitality.infinitynetworks.com.my/">
|
||||||
<!-- [PLACEHOLDER] add a 1200x630 share image: <meta property="og:image" content="https://.../og-image.jpg"> -->
|
<!-- [PLACEHOLDER] add a 1200x630 share image: <meta property="og:image" content="https://.../og-image.jpg"> -->
|
||||||
<link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png">
|
<link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png">
|
||||||
<link rel="icon" href="/favicon-192.png" sizes="192x192" type="image/png">
|
<link rel="icon" href="/favicon-192.png" sizes="192x192" type="image/png">
|
||||||
|
|||||||
Reference in new issue
Block a user