cv, time to rest
This commit is contained in:
parent
862060dcf5
commit
2909a422ce
@ -3,6 +3,6 @@
|
|||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
[x] private registry
|
[x] private registry
|
||||||
[ ] secrets
|
[x] secrets
|
||||||
[ ] ntr-cv static containers
|
[x] ntr-cv static containers
|
||||||
[ ] grafana etc
|
[ ] grafana etc
|
||||||
@ -63,11 +63,20 @@ spec:
|
|||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: crates
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crates
|
||||||
|
key: POSTGRES_DB
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
value: crates
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crates
|
||||||
|
key: POSTGRES_USER
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
value: digdeep
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crates
|
||||||
|
key: POSTGRES_PASSWORD
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: crates-postgres-storage
|
- name: crates-postgres-storage
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
@ -101,13 +110,26 @@ spec:
|
|||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
value: 'postgresql://crates:digdeep@crates-postgres:5432/crates?schema=public'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crates
|
||||||
|
key: DATABASE_URL
|
||||||
- name: DISCORD_TOKEN
|
- name: DISCORD_TOKEN
|
||||||
value: 'MTA3MjQ4OTgzMDE0NTA2NDk5MA.G4ZhOg.rFchS4vp0cNqHKuqubMFZSZCD15_E58MQhfDJo'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crates
|
||||||
|
key: DISCORD_TOKEN
|
||||||
- name: DISCOGS_TOKEN
|
- name: DISCOGS_TOKEN
|
||||||
value: 'Discogs token=wRTXuYZGOPsIQgKRGKCAkUkidGtvpSfQgPWkYIpD'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crates
|
||||||
|
key: DISCOGS_TOKEN
|
||||||
- name: DISCORD_ENABLED
|
- name: DISCORD_ENABLED
|
||||||
value: 'true'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crates
|
||||||
|
key: DISCORD_ENABLED
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -133,7 +155,10 @@ spec:
|
|||||||
args: ["prisma", "migrate", "deploy"]
|
args: ["prisma", "migrate", "deploy"]
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
value: 'postgresql://crates:digdeep@crates-postgres:5432/crates?schema=public'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crates
|
||||||
|
key: DATABASE_URL
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -99,11 +99,20 @@ spec:
|
|||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: mnml
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mnml
|
||||||
|
key: POSTGRES_DB
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
value: mnml
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mnml
|
||||||
|
key: POSTGRES_USER
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
value: maximal
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mnml
|
||||||
|
key: POSTGRES_PASSWORD
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: mnml-postgres-storage
|
- name: mnml-postgres-storage
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
@ -140,17 +149,35 @@ spec:
|
|||||||
name: ws
|
name: ws
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
value: 'postgresql://mnml:maximal@mnml-postgres:5432/mnml'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mnml
|
||||||
|
key: DATABASE_URL
|
||||||
- name: MAIL_ADDRESS
|
- name: MAIL_ADDRESS
|
||||||
value: 'machines@mnml.gg'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mnml
|
||||||
|
key: MAIL_ADDRESS
|
||||||
- name: MAIL_PASSWORD
|
- name: MAIL_PASSWORD
|
||||||
value: 'rabble'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mnml
|
||||||
|
key: MAIL_PASSWORD
|
||||||
- name: MAIL_DOMAIN
|
- name: MAIL_DOMAIN
|
||||||
value: 'gmail'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mnml
|
||||||
|
key: MAIL_DOMAIN
|
||||||
- name: STRIPE_WH_SECRET
|
- name: STRIPE_WH_SECRET
|
||||||
value: 'aaaaaaaaa'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mnml
|
||||||
|
key: STRIPE_WH_SECRET
|
||||||
- name: STRIPE_SECRET
|
- name: STRIPE_SECRET
|
||||||
value: 'bignreese'
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mnml
|
||||||
|
key: STRIPE_SECRET
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: mnml-img-storage
|
- name: mnml-img-storage
|
||||||
mountPath: /var/lib/mnml/public/imgs
|
mountPath: /var/lib/mnml/public/imgs
|
||||||
|
|||||||
25
ntr-cv/ntr-cv.ingress.yaml
Normal file
25
ntr-cv/ntr-cv.ingress.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: ntr-cv
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/issuer: "letsencrypt-prod"
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- strix.systems
|
||||||
|
secretName: strix-systems-tls
|
||||||
|
rules:
|
||||||
|
- host: strix.systems
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: ntr-cv
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
44
ntr-cv/ntr-cv.yaml
Normal file
44
ntr-cv/ntr-cv.yaml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# DEPLOYMENTS
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: ntr-cv
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: ntr-cv
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: ntr-cv
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: ntr-cv
|
||||||
|
image: registry.strix.systems/ntr-cv
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# SERVICES
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: ntr-cv
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: ntr-cv
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
@ -63,11 +63,20 @@ spec:
|
|||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: spacerace
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: spacerace
|
||||||
|
key: POSTGRES_DB
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
value: spacerace
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: spacerace
|
||||||
|
key: POSTGRES_USER
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
value: zoomzoom
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: spacerace
|
||||||
|
key: POSTGRES_PASSWORD
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: spacerace-postgres-storage
|
- name: spacerace-postgres-storage
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
@ -101,8 +110,10 @@ spec:
|
|||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
env:
|
env:
|
||||||
- name: CONNECTIONSTRINGS__SPACERACE
|
- name: CONNECTIONSTRINGS__SPACERACE
|
||||||
value: "Server=spacerace-postgres;Port=5432;Database=spacerace;User Id=spacerace;Password=zoomzoom"
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: spacerace
|
||||||
|
key: CONNECTIONSTRINGS__SPACERACE
|
||||||
---
|
---
|
||||||
|
|
||||||
# -----------------------------------------------------------------------
|
# -----------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user