From 8f8d3f7680e7f179b8d6e21063c460b7c451517b Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Fri, 19 Jun 2026 21:33:17 +0000 Subject: [PATCH] Adds nocodb app. --- nocodb/app.yaml | 5 ++ nocodb/versions/2026/README.md | 33 ++++++++++ nocodb/versions/2026/db-init-job.yaml | 59 +++++++++++++++++ nocodb/versions/2026/deployment.yaml | 87 +++++++++++++++++++++++++ nocodb/versions/2026/ingress.yaml | 26 ++++++++ nocodb/versions/2026/kustomization.yaml | 16 +++++ nocodb/versions/2026/manifest.yaml | 21 ++++++ nocodb/versions/2026/namespace.yaml | 4 ++ nocodb/versions/2026/pvc.yaml | 11 ++++ nocodb/versions/2026/service.yaml | 13 ++++ 10 files changed, 275 insertions(+) create mode 100644 nocodb/app.yaml create mode 100644 nocodb/versions/2026/README.md create mode 100644 nocodb/versions/2026/db-init-job.yaml create mode 100644 nocodb/versions/2026/deployment.yaml create mode 100644 nocodb/versions/2026/ingress.yaml create mode 100644 nocodb/versions/2026/kustomization.yaml create mode 100644 nocodb/versions/2026/manifest.yaml create mode 100644 nocodb/versions/2026/namespace.yaml create mode 100644 nocodb/versions/2026/pvc.yaml create mode 100644 nocodb/versions/2026/service.yaml diff --git a/nocodb/app.yaml b/nocodb/app.yaml new file mode 100644 index 0000000..1e8e444 --- /dev/null +++ b/nocodb/app.yaml @@ -0,0 +1,5 @@ +name: nocodb +is: nocodb +description: NocoDB is an open-source Airtable alternative that turns any database into a smart spreadsheet with views, forms, and APIs. +icon: https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/nocodb.svg +latest: "2026" diff --git a/nocodb/versions/2026/README.md b/nocodb/versions/2026/README.md new file mode 100644 index 0000000..3c9cd99 --- /dev/null +++ b/nocodb/versions/2026/README.md @@ -0,0 +1,33 @@ +# NocoDB + +NocoDB is an open-source no-code database platform that turns any database into a smart spreadsheet. + +## Dependencies + +- **PostgreSQL** - Database backend for storing tables and data + +## Configuration + +Key settings in `config.yaml`: + +- **domain** - Where NocoDB will be accessible +- **storage** - Persistent volume size (default: `1Gi`) +- **db.name** - Database name (default: `nocodb`) + +## First-Time Setup + +1. Add and deploy the app: + ```bash + wild app add nocodb + wild app deploy nocodb + ``` + +2. Visit the app URL and complete the sign-up form to create your admin account. + +3. The first user to sign up becomes the super admin. + +## Notes + +- NocoDB requires substantial memory — 2Gi is recommended to avoid OOM crashes (Node.js) +- The `ncAuthJwtSecret` is auto-generated and used for JWT token signing +- Workspaces and bases (tables) can be shared with other users via the team management panel diff --git a/nocodb/versions/2026/db-init-job.yaml b/nocodb/versions/2026/db-init-job.yaml new file mode 100644 index 0000000..3284cba --- /dev/null +++ b/nocodb/versions/2026/db-init-job.yaml @@ -0,0 +1,59 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: nocodb-db-init + labels: + component: db-init +spec: + template: + metadata: + labels: + component: db-init + spec: + restartPolicy: OnFailure + securityContext: + runAsNonRoot: true + runAsUser: 999 + runAsGroup: 999 + seccompProfile: + type: RuntimeDefault + containers: + - name: postgres-init + image: postgres:15 + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: false + env: + - name: PGHOST + value: {{ .db.host }} + - name: PGUSER + value: postgres + - name: PGPASSWORD + valueFrom: + secretKeyRef: + name: nocodb-secrets + key: postgres.password + - name: DB_NAME + value: {{ .db.name }} + - name: DB_USER + value: {{ .db.user }} + - name: DB_PASSWORD + valueFrom: + secretKeyRef: + name: nocodb-secrets + key: dbPassword + command: + - /bin/bash + - -c + - | + set -e + until pg_isready; do sleep 2; done + psql -c "CREATE DATABASE ${DB_NAME};" || echo "Database already exists" + psql -c "CREATE USER ${DB_USER} WITH PASSWORD '${DB_PASSWORD}';" || echo "User already exists" + psql -c "ALTER USER ${DB_USER} WITH PASSWORD '${DB_PASSWORD}';" + psql -c "GRANT ALL PRIVILEGES ON DATABASE ${DB_NAME} TO ${DB_USER};" + psql -d ${DB_NAME} -c "GRANT ALL ON SCHEMA public TO ${DB_USER};" + echo "Done" diff --git a/nocodb/versions/2026/deployment.yaml b/nocodb/versions/2026/deployment.yaml new file mode 100644 index 0000000..95f124a --- /dev/null +++ b/nocodb/versions/2026/deployment.yaml @@ -0,0 +1,87 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nocodb + namespace: nocodb +spec: + replicas: 1 + strategy: + type: Recreate + selector: + matchLabels: + component: web + template: + metadata: + labels: + component: web + spec: + securityContext: + runAsNonRoot: true + runAsUser: 1001 + runAsGroup: 1001 + fsGroup: 1001 + seccompProfile: + type: RuntimeDefault + containers: + - name: nocodb + image: nocodb/nocodb:2026.04.1 + ports: + - name: http + containerPort: 8080 + protocol: TCP + env: + - name: NODE_OPTIONS + value: "--max-old-space-size=1536" + - name: NC_DB + valueFrom: + secretKeyRef: + name: nocodb-secrets + key: dbUrl + - name: NC_PUBLIC_URL + value: https://{{ .domain }} + - name: NC_AUTH_JWT_SECRET + valueFrom: + secretKeyRef: + name: nocodb-secrets + key: ncAuthJwtSecret + - name: NC_DISABLE_TELE + value: "true" + resources: + limits: + cpu: 500m + ephemeral-storage: 1Gi + memory: 2Gi + requests: + cpu: 50m + ephemeral-storage: 50Mi + memory: 256Mi + volumeMounts: + - name: nocodb-data + mountPath: /usr/app/data + livenessProbe: + httpGet: + path: /api/v1/health + port: 8080 + initialDelaySeconds: 60 + timeoutSeconds: 5 + periodSeconds: 15 + failureThreshold: 6 + readinessProbe: + httpGet: + path: /api/v1/health + port: 8080 + initialDelaySeconds: 30 + timeoutSeconds: 3 + periodSeconds: 10 + failureThreshold: 3 + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: false + volumes: + - name: nocodb-data + persistentVolumeClaim: + claimName: nocodb-data + restartPolicy: Always diff --git a/nocodb/versions/2026/ingress.yaml b/nocodb/versions/2026/ingress.yaml new file mode 100644 index 0000000..04c52e4 --- /dev/null +++ b/nocodb/versions/2026/ingress.yaml @@ -0,0 +1,26 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: nocodb + namespace: nocodb + annotations: + external-dns.alpha.kubernetes.io/target: {{ .externalDnsDomain }} + external-dns.alpha.kubernetes.io/cloudflare-proxied: "false" + external-dns.alpha.kubernetes.io/ttl: "60" +spec: + ingressClassName: traefik + rules: + - host: {{ .domain }} + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: nocodb + port: + number: 80 + tls: + - hosts: + - {{ .domain }} + secretName: {{ .tlsSecretName }} diff --git a/nocodb/versions/2026/kustomization.yaml b/nocodb/versions/2026/kustomization.yaml new file mode 100644 index 0000000..d89a5da --- /dev/null +++ b/nocodb/versions/2026/kustomization.yaml @@ -0,0 +1,16 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: nocodb +labels: + - includeSelectors: true + pairs: + app: nocodb + managedBy: kustomize + partOf: wild-cloud +resources: + - namespace.yaml + - db-init-job.yaml + - deployment.yaml + - service.yaml + - ingress.yaml + - pvc.yaml diff --git a/nocodb/versions/2026/manifest.yaml b/nocodb/versions/2026/manifest.yaml new file mode 100644 index 0000000..374b9a4 --- /dev/null +++ b/nocodb/versions/2026/manifest.yaml @@ -0,0 +1,21 @@ +version: 2026.04.1-1 +requires: + - name: postgres +defaultConfig: + namespace: nocodb + externalDnsDomain: '{{ .cloud.domain }}' + domain: nocodb.{{ .cloud.domain }} + tlsSecretName: wildcard-wild-cloud-tls + storage: 1Gi + db: + host: '{{ .apps.postgres.host }}' + port: '{{ .apps.postgres.port }}' + name: nocodb + user: nocodb +defaultSecrets: + - key: dbPassword + - key: ncAuthJwtSecret + - key: dbUrl + default: 'pg://{{ .app.db.host }}:{{ .app.db.port }}?u={{ .app.db.user }}&p={{ .secrets.dbPassword }}&d={{ .app.db.name }}' +requiredSecrets: + - postgres.password diff --git a/nocodb/versions/2026/namespace.yaml b/nocodb/versions/2026/namespace.yaml new file mode 100644 index 0000000..c6bf5e4 --- /dev/null +++ b/nocodb/versions/2026/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: nocodb diff --git a/nocodb/versions/2026/pvc.yaml b/nocodb/versions/2026/pvc.yaml new file mode 100644 index 0000000..3bd19a8 --- /dev/null +++ b/nocodb/versions/2026/pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: nocodb-data + namespace: nocodb +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: {{ .storage }} diff --git a/nocodb/versions/2026/service.yaml b/nocodb/versions/2026/service.yaml new file mode 100644 index 0000000..0c51320 --- /dev/null +++ b/nocodb/versions/2026/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: nocodb + namespace: nocodb +spec: + selector: + component: web + ports: + - name: http + port: 80 + targetPort: 8080 + protocol: TCP