From 0434d55f6ed629420eaa5ddb3456b5c1001634ac Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Fri, 15 Nov 2024 22:36:14 +0100 Subject: [PATCH 1/3] Template / Add directus --- services/directus/app.yaml | 75 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 services/directus/app.yaml diff --git a/services/directus/app.yaml b/services/directus/app.yaml new file mode 100644 index 00000000..3b57c4d8 --- /dev/null +++ b/services/directus/app.yaml @@ -0,0 +1,75 @@ +apiVersion: application.kubero.dev/v1alpha1 +kind: KuberoApp +metadata: + name: directus + annotations: + kubero.dev/template.architecture: "[]" + kubero.dev/template.description: "The flexible backend for all your projects. Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more." + kubero.dev/template.icon: "https://avatars.githubusercontent.com/u/15967950" + kubero.dev/template.installation: "" + kubero.dev/template.links: "[]" + kubero.dev/template.screenshots: "[]" + kubero.dev/template.source: "https://github.com/directus/directus" + kubero.dev/template.tags: "['database','cms','api']" + kubero.dev/template.title: "Directus" + kubero.dev/template.website: "https://directus.io/" + labels: + manager: kubero +spec: + name: directus + deploymentstrategy: docker + envVars: + - name: ADMIN_EMAIL + value: admin@example.com + - name: ADMIN_PASSWORD + value: example + - name: DB_CLIENT + value: sqlite3 + - name: DB_FILENAME + value: /directus/database/data.db + - name: WEBSOCKETS_ENABLED + value: "true" + extraVolumes: + - accessMode: ReadWriteOnce + accessModes: + - ReadWriteOnce + emptyDir: false + mountPath: /directus/database + name: directus-db-volume + size: 1Gi + storageClass: standard + - accessMode: ReadWriteOnce + accessModes: + - ReadWriteOnce + emptyDir: false + mountPath: /directus/uploads + name: directus-uploads-volume + size: 1Gi + storageClass: standard + - accessMode: ReadWriteOnce + accessModes: + - ReadWriteOnce + emptyDir: false + mountPath: /directus/extensions + name: directus-extensions-volume + size: 1Gi + storageClass: standard + - accessMode: ReadWriteOnce + accessModes: + - ReadWriteOnce + emptyDir: false + mountPath: /directus/templates + name: directus-templates-volume + size: 1Gi + storageClass: standard + cronjobs: [] + addons: [] + web: + replicaCount: 1 + worker: + replicaCount: 0 + image: + containerPort: "8055" + pullPolicy: Always + repository: directus/directus + tag: "11" From 66f82a38dafb04a91be566739e1e3f3479220c8d Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Tue, 3 Dec 2024 13:39:20 +0100 Subject: [PATCH 2/3] Update Directus app metadata tags format to use double quotes instead of single quotes. --- services/directus/app.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/directus/app.yaml b/services/directus/app.yaml index 3b57c4d8..c2c16d59 100644 --- a/services/directus/app.yaml +++ b/services/directus/app.yaml @@ -10,7 +10,7 @@ metadata: kubero.dev/template.links: "[]" kubero.dev/template.screenshots: "[]" kubero.dev/template.source: "https://github.com/directus/directus" - kubero.dev/template.tags: "['database','cms','api']" + kubero.dev/template.tags: '["database", "cms", "api"]' kubero.dev/template.title: "Directus" kubero.dev/template.website: "https://directus.io/" labels: From 2f3965eceed5acbd02779324d0f7b0c61b9b31ef Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Mon, 23 Dec 2024 22:49:00 +0100 Subject: [PATCH 3/3] fix categories in template --- services/directus/app.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/directus/app.yaml b/services/directus/app.yaml index c2c16d59..d6c3370b 100644 --- a/services/directus/app.yaml +++ b/services/directus/app.yaml @@ -10,7 +10,7 @@ metadata: kubero.dev/template.links: "[]" kubero.dev/template.screenshots: "[]" kubero.dev/template.source: "https://github.com/directus/directus" - kubero.dev/template.tags: '["database", "cms", "api"]' + kubero.dev/template.categories: '["database", "cms", "api"]' kubero.dev/template.title: "Directus" kubero.dev/template.website: "https://directus.io/" labels: