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 +