mnml back
This commit is contained in:
parent
4c72c841e7
commit
3c118b0796
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
pvs/
|
pvs/
|
||||||
|
|
||||||
*.sql
|
*.sql
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
|
mnml/mnml.secret.yaml
|
||||||
|
|||||||
@ -7,16 +7,17 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: mnml-client
|
name: mnml-client
|
||||||
|
namespace: mnml
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: haproxy
|
ingressClassName: haproxy
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- mnml.gg
|
- mnml.ntwl.xyz
|
||||||
secretName: mnml-tls
|
secretName: mnml-tls
|
||||||
rules:
|
rules:
|
||||||
- host: mnml.gg
|
- host: mnml.ntwl.xyz
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@ -33,7 +34,7 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: mnml-api
|
name: mnml-api
|
||||||
namespace: default
|
namespace: mnml
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
haproxy.org/websocket-support: "true"
|
haproxy.org/websocket-support: "true"
|
||||||
@ -41,10 +42,10 @@ spec:
|
|||||||
ingressClassName: haproxy
|
ingressClassName: haproxy
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- mnml.gg
|
- mnml.ntwl.xyz
|
||||||
secretName: mnml-tls
|
secretName: mnml-tls
|
||||||
rules:
|
rules:
|
||||||
- host: mnml.gg
|
- host: mnml.ntwl.xyz
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /api
|
- path: /api
|
||||||
@ -61,6 +62,7 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: mnml-ws
|
name: mnml-ws
|
||||||
|
namespace: mnml
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
haproxy.org/websocket-support: "true"
|
haproxy.org/websocket-support: "true"
|
||||||
@ -69,10 +71,10 @@ spec:
|
|||||||
ingressClassName: haproxy
|
ingressClassName: haproxy
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- mnml.gg
|
- mnml.ntwl.xyz
|
||||||
secretName: mnml-tls
|
secretName: mnml-tls
|
||||||
rules:
|
rules:
|
||||||
- host: mnml.gg
|
- host: mnml.ntwl.xyz
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /api/ws
|
- path: /api/ws
|
||||||
|
|||||||
@ -1,35 +1,24 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: mnml
|
||||||
|
|
||||||
# -----------------------------------------------------------------------
|
# -----------------------------------------------------------------------
|
||||||
# VOLUMES
|
# VOLUMES
|
||||||
# -----------------------------------------------------------------------
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
name: mnml-postgres-pv
|
|
||||||
spec:
|
|
||||||
storageClassName: local-path
|
|
||||||
capacity:
|
|
||||||
storage: 1Gi
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
persistentVolumeReclaimPolicy: Retain
|
|
||||||
claimRef:
|
|
||||||
namespace: default
|
|
||||||
name: mnml-postgres-pvc
|
|
||||||
hostPath:
|
|
||||||
path: "/var/lib/rancher/k3s/storage/mnml-postgres-pv"
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: mnml
|
||||||
name: mnml-postgres-pvc
|
name: mnml-postgres-pvc
|
||||||
spec:
|
spec:
|
||||||
volumeName: mnml-postgres-pv
|
storageClassName: fast
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
@ -38,38 +27,19 @@ spec:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
name: mnml-imgs-pv
|
|
||||||
spec:
|
|
||||||
storageClassName: local-path
|
|
||||||
capacity:
|
|
||||||
storage: 1Gi
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
persistentVolumeReclaimPolicy: Retain
|
|
||||||
claimRef:
|
|
||||||
namespace: default
|
|
||||||
name: mnml-imgs-pvc
|
|
||||||
hostPath:
|
|
||||||
path: "/var/lib/rancher/k3s/storage/mnml-imgs-pv"
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: mnml
|
||||||
name: mnml-imgs-pvc
|
name: mnml-imgs-pvc
|
||||||
spec:
|
spec:
|
||||||
volumeName: mnml-imgs-pv
|
storageClassName: fast
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 2Gi
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -80,7 +50,9 @@ spec:
|
|||||||
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: mnml
|
||||||
name: mnml-postgres
|
name: mnml-postgres
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@ -94,7 +66,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: postgres:latest
|
image: postgres:16
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
env:
|
env:
|
||||||
@ -126,7 +98,9 @@ spec:
|
|||||||
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: mnml
|
||||||
name: mnml-api
|
name: mnml-api
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@ -140,7 +114,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mnml-api
|
- name: mnml-api
|
||||||
image: registry.strix.systems/mnml-api
|
image: registry.ntwl.xyz/mnml-api
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 40000
|
- containerPort: 40000
|
||||||
@ -191,7 +165,9 @@ spec:
|
|||||||
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: mnml
|
||||||
name: mnml-client
|
name: mnml-client
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@ -205,7 +181,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mnml-client
|
- name: mnml-client
|
||||||
image: registry.strix.systems/mnml-client
|
image: registry.ntwl.xyz/mnml-client
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
@ -225,7 +201,9 @@ spec:
|
|||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: mnml
|
||||||
name: mnml-api
|
name: mnml-api
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
@ -238,7 +216,9 @@ spec:
|
|||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: mnml
|
||||||
name: mnml-ws
|
name: mnml-ws
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
@ -251,7 +231,9 @@ spec:
|
|||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: mnml
|
||||||
name: mnml-postgres
|
name: mnml-postgres
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
@ -263,7 +245,9 @@ spec:
|
|||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: mnml
|
||||||
name: mnml-client
|
name: mnml-client
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user