forked from k-space/kube
		
	freescout: Cleanup
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user