spacerace

This commit is contained in:
Nathan Rashleigh committed 2025-04-12 22:20:42 +10:00
1 parent 8b0ef37ffa
commit 1507067fce
4 files changed
+167 -183

No files matched your search

+4 -3
View File
@@ -3,6 +3,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spacerace-api
namespace: spacerace
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
haproxy.org/path-rewrite: "/api(/)?(.*) /$2"
@@ -10,10 +11,10 @@ spec:
ingressClassName: haproxy
tls:
- hosts:
- spacerace.strix.systems
secretName: spacerace-strix-systems-tls
- spacerace.ntwl.xyz
secretName: spacerace-ntwl-xyz-tls
rules:
- host: spacerace.strix.systems
- host: spacerace.ntwl.xyz
http:
paths:
- path: /api(/|$)(.*)
+7 -21
View File
@@ -4,32 +4,14 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: spacerace-postgres-pv
spec:
storageClassName: ""
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
claimRef:
namespace: default
name: spacerace-postgres-pvc
hostPath:
path: "/var/lib/rancher/k3s/storage/spacerace-postgres-pv"
type: DirectoryOrCreate
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: spacerace-postgres-pvc
namespace: spacerace
spec:
volumeName: spacerace-postgres-pv
storageClassName: zfs-fast
accessModes:
- ReadWriteOnce
resources:
@@ -46,6 +28,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: spacerace-postgres
namespace: spacerace
spec:
replicas: 1
selector:
@@ -92,6 +75,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: spacerace-api
namespace: spacerace
spec:
replicas: 1
selector:
@@ -104,7 +88,7 @@ spec:
spec:
containers:
- name: spacerace-api
image: registry.strix.systems/spacerace-api
image: registry.ntwl.xyz/spacerace-api
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
@@ -124,6 +108,7 @@ apiVersion: v1
kind: Service
metadata:
name: spacerace-api
namespace: spacerace
spec:
selector:
app: spacerace-api
@@ -135,6 +120,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
namespace: spacerace
name: spacerace-postgres
spec:
selector: