feat(piedmont): deploy PHS site + HTTPRoute for piedmonthomesvc.com

Serves the handyman site from the cluster instead of the Pi's dead
nginx/registry/Garage stack. The 78 /photos/ paths the site requests are
already baked into assets/portfolio/, so the image serves them via an
nginx alias and the Garage bucket is no longer a runtime dependency.

Image: forgejo.siriusdevops.com/sirius/phs-site:latest (public package).
This commit is contained in:
lance 2026-09-29 22:32:11 -04:00
commit d8f46972fb
6 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: piedmont-site
namespace: piedmont
spec:
replicas: 1
selector:
matchLabels:
app: piedmont-site
template:
metadata:
labels:
app: piedmont-site
spec:
tolerations:
- key: dedicated
operator: Exists
effect: PreferNoSchedule
nodeSelector:
kubernetes.io/hostname: linode
containers:
- name: nginx
image: forgejo.siriusdevops.com/sirius/phs-site:latest
imagePullPolicy: Always
ports:
- containerPort: 80
name: http
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: 25m
memory: 48Mi
limits:
memory: 192Mi

View file

@ -0,0 +1,20 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: piedmont
namespace: piedmont
spec:
parentRefs:
- name: public
namespace: gateway-system
hostnames:
- piedmonthomesvc.com
- www.piedmonthomesvc.com
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: piedmont-site
port: 80

View file

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- deployment.yaml
- service.yaml
- httproute.yaml

View file

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: piedmont
labels:
app.kubernetes.io/part-of: piedmont

View file

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: piedmont-site
namespace: piedmont
spec:
type: ClusterIP
selector:
app: piedmont-site
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP

View file

@ -3,3 +3,4 @@ kind: Kustomization
resources: resources:
- ../base/forgejo - ../base/forgejo
- ../base/siriusdevops - ../base/siriusdevops
- ../base/piedmont