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:
parent
09ad7485af
commit
d8f46972fb
6 changed files with 94 additions and 0 deletions
46
apps/base/piedmont/deployment.yaml
Normal file
46
apps/base/piedmont/deployment.yaml
Normal 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
|
||||||
20
apps/base/piedmont/httproute.yaml
Normal file
20
apps/base/piedmont/httproute.yaml
Normal 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
|
||||||
7
apps/base/piedmont/kustomization.yaml
Normal file
7
apps/base/piedmont/kustomization.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- httproute.yaml
|
||||||
6
apps/base/piedmont/namespace.yaml
Normal file
6
apps/base/piedmont/namespace.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: piedmont
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/part-of: piedmont
|
||||||
14
apps/base/piedmont/service.yaml
Normal file
14
apps/base/piedmont/service.yaml
Normal 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
|
||||||
|
|
@ -3,3 +3,4 @@ kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ../base/forgejo
|
- ../base/forgejo
|
||||||
- ../base/siriusdevops
|
- ../base/siriusdevops
|
||||||
|
- ../base/piedmont
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue