From b0befbcd69eb1532c84023fc9f3d2518fc60cfd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Wed, 14 Aug 2024 06:57:15 +0300 Subject: [PATCH] freescout: Cleanup --- freescout/README.md | 10 ++++++++++ freescout/application.yml | 28 +++++++++++++++++++--------- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/freescout/README.md b/freescout/README.md index ddd52d5..dc22b34 100644 --- a/freescout/README.md +++ b/freescout/README.md @@ -1,5 +1,15 @@ # Freescout +Freescout scrapes `info@k-space.ee` and `accounting@k-space.ee` mailboxes +from Wildduck and builds issue tracker on top the mailbox. + +The Freescout user interface is accessible at +[freescout.k-space.ee](https://freescout.k-space.ee/) + +Note that Freescout notifications are sent to `@k-space.ee` mailboxes. +Forwarding to personal eg. `@gmail.com` mailbox can be configured via +[Wildduck webmail](https://webmail.k-space.ee/account/profile) + This application is managed by [ArgoCD](https://argocd.k-space.ee/applications/argocd/freescout) Should ArgoCD be down manifests here can be applied with: diff --git a/freescout/application.yml b/freescout/application.yml index 9735959..e187584 100644 --- a/freescout/application.yml +++ b/freescout/application.yml @@ -1,8 +1,10 @@ +# yamllint disable rule:line-length --- apiVersion: codemowers.cloud/v1beta1 kind: OIDCMiddlewareClient metadata: name: freescout + namespace: freescout spec: displayName: Freescout Middleware uri: 'https://freescout.k-space.ee' @@ -18,6 +20,7 @@ apiVersion: codemowers.cloud/v1beta1 kind: OIDCClient metadata: name: freescout + namespace: freescout spec: displayName: Freescout uri: https://freescout.k-space.ee @@ -105,6 +108,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: freescout + namespace: freescout annotations: kubernetes.io/ingress.class: traefik traefik.ingress.kubernetes.io/router.entrypoints: websecure @@ -131,6 +135,7 @@ apiVersion: v1 kind: Service metadata: name: freescout + namespace: freescout spec: type: ClusterIP selector: @@ -144,9 +149,11 @@ apiVersion: apps/v1 kind: Deployment metadata: name: freescout + namespace: freescout labels: app: freescout spec: + revisionHistoryLimit: 0 selector: matchLabels: app: freescout @@ -209,11 +216,12 @@ apiVersion: batch/v1 kind: CronJob metadata: name: freescout-cron + namespace: freescout spec: - schedule: "0,30 * * * *" # Should be every minute in theory, keeps hanging + schedule: "0,30 * * * *" # Should be every minute in theory, keeps hanging jobTemplate: spec: - activeDeadlineSeconds: 1800 # this is unholy https://github.com/freescout-helpdesk/freescout/blob/dist/app/Console/Kernel.php + activeDeadlineSeconds: 1800 # this is unholy https://github.com/freescout-helpdesk/freescout/blob/dist/app/Console/Kernel.php ttlSecondsAfterFinished: 100 template: spec: @@ -274,6 +282,7 @@ apiVersion: codemowers.cloud/v1beta1 kind: MinioBucketClaim metadata: name: attachments + namespace: freescout spec: capacity: 10Gi class: external @@ -282,14 +291,15 @@ apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: freescout + namespace: freescout spec: groups: - name: freescout rules: - - alert: FreescoutSyncBroken - expr: time() - wildduck_last_login{email=~"(info|accounting)@k-space.ee"} > 300 - for: 10m - labels: - severity: warning - annotations: - summary: Freescout mailbox synchronization is broken + - alert: FreescoutSyncBroken + expr: time() - wildduck_last_login{email=~"(info|accounting)@k-space.ee"} > 300 + for: 10m + labels: + severity: warning + annotations: + summary: Freescout mailbox synchronization is broken