From 5fd272611712f8cd8db07fc4555932e8e1d3902c Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sat, 23 Nov 2024 20:18:35 -0500 Subject: [PATCH] Add nocodb --- cluster/nocodb/nocodb-deployment.yaml | 30 +++++++++++++++++++++++++++ cluster/nocodb/nocodb-pvc.yaml | 15 ++++++++++++++ cluster/nocodb/nocodb-service.yaml | 15 ++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 cluster/nocodb/nocodb-deployment.yaml create mode 100644 cluster/nocodb/nocodb-pvc.yaml create mode 100644 cluster/nocodb/nocodb-service.yaml diff --git a/cluster/nocodb/nocodb-deployment.yaml b/cluster/nocodb/nocodb-deployment.yaml new file mode 100644 index 0000000..01b91d5 --- /dev/null +++ b/cluster/nocodb/nocodb-deployment.yaml @@ -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 + diff --git a/cluster/nocodb/nocodb-pvc.yaml b/cluster/nocodb/nocodb-pvc.yaml new file mode 100644 index 0000000..1c563a0 --- /dev/null +++ b/cluster/nocodb/nocodb-pvc.yaml @@ -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 + diff --git a/cluster/nocodb/nocodb-service.yaml b/cluster/nocodb/nocodb-service.yaml new file mode 100644 index 0000000..c454b8d --- /dev/null +++ b/cluster/nocodb/nocodb-service.yaml @@ -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 +