From e0ad3946f8d0ff15eac9d5b6a08f1af45bf8bdc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sat, 12 Aug 2023 16:51:21 +0200 Subject: [PATCH] fix --- share/wildduck/index.yaml | 86 +++++++++++++++++++-------------------- share/wildduck/mongo.tf | 9 ++++ 2 files changed, 52 insertions(+), 43 deletions(-) diff --git a/share/wildduck/index.yaml b/share/wildduck/index.yaml index 653bb20..f75c4cd 100644 --- a/share/wildduck/index.yaml +++ b/share/wildduck/index.yaml @@ -6,6 +6,11 @@ metadata: name: wildduck description: null options: + domain: + default: your-company + examples: + - your-company + type: string domain-name: default: your_company.com examples: @@ -16,40 +21,10 @@ options: examples: - letsencrypt-prod type: string - backups: - default: - enable: false - endpoint: '' - key-id-key: s3-id - secret-key: s3-secret - secret-name: backup-settings + ingress-class: + default: traefik examples: - - enable: false - endpoint: '' - key-id-key: s3-id - secret-key: s3-secret - secret-name: backup-settings - properties: - enable: - default: false - type: boolean - endpoint: - default: '' - type: string - key-id-key: - default: s3-id - type: string - secret-key: - default: s3-secret - type: string - secret-name: - default: backup-settings - type: string - type: object - domain: - default: your-company - examples: - - your-company + - traefik type: string sub-domain: default: mail @@ -89,6 +64,41 @@ options: default: 2Gi type: string type: object + backups: + default: + enable: false + endpoint: '' + key-id-key: s3-id + secret-key: s3-secret + secret-name: backup-settings + examples: + - enable: false + endpoint: '' + key-id-key: s3-id + secret-key: s3-secret + secret-name: backup-settings + properties: + enable: + default: false + type: boolean + endpoint: + default: '' + type: string + key-id-key: + default: s3-id + type: string + secret-key: + default: s3-secret + type: string + secret-name: + default: backup-settings + type: string + type: object + additional-domains: + default: [] + items: + type: string + type: array images: default: haraka: @@ -252,16 +262,6 @@ options: type: string type: object type: object - ingress-class: - default: traefik - examples: - - traefik - type: string - additional-domains: - default: [] - items: - type: string - type: array dependencies: - dist: null category: dbo diff --git a/share/wildduck/mongo.tf b/share/wildduck/mongo.tf index fcf3d84..9a0a6fe 100644 --- a/share/wildduck/mongo.tf +++ b/share/wildduck/mongo.tf @@ -51,6 +51,13 @@ resource "kubectl_manifest" "prj_mongo" { spec: containers: - name: mongod + resources: + limits: + cpu: 1 + memory: 1G + requests: + cpu: "0.3" + memory: 400M env: - name: MONGODB_NAME value: ${var.component} @@ -64,6 +71,8 @@ resource "kubectl_manifest" "prj_mongo" { security: authentication: modes: ["SCRAM"] + additionalMongodConfig: + storage.wiredTiger.engineConfig.cacheSizeGB: 1 users: - db: ${var.component} name: ${var.component}