From 10124e853a2117375c0ca03f5270f18a72842fb5 Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Mon, 13 Jan 2025 16:56:46 +0100 Subject: [PATCH 1/2] Template / Add Airbroke --- services/airbroke/app.yaml | 77 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 services/airbroke/app.yaml diff --git a/services/airbroke/app.yaml b/services/airbroke/app.yaml new file mode 100644 index 00000000..601037ea --- /dev/null +++ b/services/airbroke/app.yaml @@ -0,0 +1,77 @@ +apiVersion: application.kubero.dev/v1alpha1 +kind: KuberoApp +metadata: + name: airbroke + annotations: + kubero.dev/template.architecture: "[]" + kubero.dev/template.description: "A lightweight, Airbrake-compatible, PostgreSQL-based Open Source Error Catcher" + kubero.dev/template.icon: "https://raw.githubusercontent.com/icoretech/airbroke/refs/heads/main/public/logo.png" + kubero.dev/template.installation: "After installation you need to login into the pod and run the following command: `npx prisma migrate deploy`" + kubero.dev/template.links: "[]" + kubero.dev/template.screenshots: '["https://github.com/icoretech/airbroke/raw/main/public/aidemo.gif"]' + kubero.dev/template.source: "https://github.com/icoretech/airbroke" + kubero.dev/template.categories: '["development", "monitoring", "ai"]' + kubero.dev/template.title: "Airbroke" + kubero.dev/template.website: "https://airbroke.icorete.ch/" + labels: + manager: kubero +spec: + name: airbroke + deploymentstrategy: docker + envVars: + - name: DATABASE_URL + value: postgresql://airbroke:airbroke@airbroke-postgresql:5432/airbroke?schema=public + - name: DIRECT_URL + value: postgresql://airbroke:airbroke@airbroke-postgresql:5432/airbroke?schema=public + - name: NEXT_SERVER_ACTIONS_ENCRYPTION_KEY + value: random64 + - name: AUTH_SECRET + value: random64 + - name: AIRBROKE_GITHUB_ID + value: createAGithubApp + - name: AIRBROKE_GITHUB_SECRET + value: createAGithubApp + - name: AUTH_DEBUG + value: "true" + - name: AUTH_URL + value: https://airbroke.localhost/ + - name: AIRBROKE_CORS_ORIGINS + value: https://airbroke.localhost/ + extraVolumes: [] + cronjobs: [] + addons: + - displayName: Postgresql + env: [] + icon: /img/addons/pgsql.svg + id: kubero-operator + kind: KuberoPostgresql + resourceDefinitions: + KuberoPostgresql: + apiVersion: application.kubero.dev/v1alpha1 + kind: KuberoPostgresql + metadata: + name: airbroke-postgresql + spec: + postgresql: + global: + postgresql: + auth: + database: airbroke + password: airbroke + postgresPassword: airbroke + username: airbroke + storageClass: standard + primary: + persistence: + size: 1Gi + version: + latest: 0.1.6 + web: + replicaCount: 1 + worker: + replicaCount: 0 + image: + containerPort: "3000" + pullPolicy: Always + repository: ghcr.io/icoretech/airbroke + tag: latest From 6ed7508265d32c388746b59297606f9453f9a445 Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Mon, 13 Jan 2025 17:21:07 +0100 Subject: [PATCH 2/2] Change the icon URL to a SVG file and set AUTH_DEBUG value to "false". --- services/airbroke/app.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/airbroke/app.yaml b/services/airbroke/app.yaml index 601037ea..c3dc0c54 100644 --- a/services/airbroke/app.yaml +++ b/services/airbroke/app.yaml @@ -5,7 +5,7 @@ metadata: annotations: kubero.dev/template.architecture: "[]" kubero.dev/template.description: "A lightweight, Airbrake-compatible, PostgreSQL-based Open Source Error Catcher" - kubero.dev/template.icon: "https://raw.githubusercontent.com/icoretech/airbroke/refs/heads/main/public/logo.png" + kubero.dev/template.icon: "https://raw.githubusercontent.com/icoretech/airbroke/refs/heads/main/public/logo.svg" kubero.dev/template.installation: "After installation you need to login into the pod and run the following command: `npx prisma migrate deploy`" kubero.dev/template.links: "[]" kubero.dev/template.screenshots: '["https://github.com/icoretech/airbroke/raw/main/public/aidemo.gif"]' @@ -32,7 +32,7 @@ spec: - name: AIRBROKE_GITHUB_SECRET value: createAGithubApp - name: AUTH_DEBUG - value: "true" + value: "false" - name: AUTH_URL value: https://airbroke.localhost/ - name: AIRBROKE_CORS_ORIGINS