Add nocodb

This commit is contained in:
Tyler Perkins 2024-11-23 20:18:35 -05:00
parent 463f1e9d9d
commit 5fd2726117
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nocodb-deployment
namespace: default
labels:
app: nocodb
spec:
replicas: 1
selector:
matchLabels:
app: nocodb
template:
metadata:
labels:
app: nocodb
spec:
containers:
- name: nocodb
image: nocodb/nocodb:latest
ports:
- containerPort: 8080
volumeMounts:
- name: noco-data
mountPath: /usr/app/data
volumes:
- name: noco-data
persistentVolumeClaim:
claimName: noco-pvc

View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: noco-pvc
namespace: default
labels:
app: nocodb
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: longhorn

View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: nocodb-service
namespace: default
labels:
app: nocodb
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8080
selector:
app: nocodb