This commit is contained in:
Nathan Rashleigh 2024-01-18 21:00:04 +11:00
parent 0542bd00ae
commit fa11315a0c
5 changed files with 28 additions and 8 deletions

5
.gitignore vendored
View File

@ -1 +1,4 @@
pvs/
pvs/
*.sql
*.tar.gz

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# strix.systems
## TODO
[ ] ntr-cv static containers
[ ] grafana etc

View File

@ -54,7 +54,7 @@ spec:
spec:
containers:
- name: postgres
image: postgres:latest
image: postgres:16
ports:
- containerPort: 5432
env:
@ -126,7 +126,7 @@ spec:
image: crates-api
imagePullPolicy: IfNotPresent
command: ["npx"]
args: ["prisma", "migrate", "dev"]
args: ["prisma", "migrate", "deploy"]
env:
- name: DATABASE_URL
value: 'postgresql://crates:digdeep@crates-postgres:5432/crates?schema=public'

9
kustomization.yaml Normal file
View File

@ -0,0 +1,9 @@
---
resources:
- crates.yaml
images:
- name: postgres
newName: postgres
newTag: "14"

View File

@ -2,6 +2,8 @@
# VOLUMES
# -----------------------------------------------------------------------
---
apiVersion: v1
kind: PersistentVolume
metadata:
@ -9,15 +11,15 @@ metadata:
spec:
storageClassName: ""
capacity:
storage: 1Gi
storage: 1Gi
accessModes:
- ReadWriteOnce
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
claimRef:
namespace: default
name: spacerace-postgres-pvc
namespace: default
name: spacerace-postgres-pvc
hostPath:
path: "/home/ntr/strix/pvs/spacerace-postgres" # Specify the local path on your node
path: "/home/ntr/strix/pvs/spacerace-postgres"
---