This commit is contained in:
2023-08-11 12:48:32 +02:00
parent 0aca51fcfc
commit 3875aff2b2
16 changed files with 523 additions and 147 deletions

View File

@@ -6,36 +6,16 @@ metadata:
name: wildduck
description: null
options:
sub-domain:
default: mail
domain-name:
default: your_company.com
examples:
- mail
type: string
ingress-class:
default: traefik
examples:
- traefik
- your_company.com
type: string
domain:
default: your-company
examples:
- your-company
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
additional-domains:
default: []
items:
type: string
type: array
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
images:
default:
haraka:
@@ -199,6 +179,51 @@ options:
type: string
type: object
type: object
sub-domain:
default: mail
examples:
- mail
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
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
redis:
default:
exporter:
@@ -232,6 +257,11 @@ options:
default: 2Gi
type: string
type: object
additional-domains:
default: []
items:
type: string
type: array
dependencies:
- dist: null
category: dbo

View File

@@ -41,6 +41,25 @@ resource "kubectl_manifest" "prj_mongo" {
members: 1
type: ReplicaSet
version: "4.4.0"
podSpec:
podTemplate:
spec:
containers:
- name: mongod
env:
- name: MONGODB_NAME
value: ${var.component}
- name: MONGODB_USER
value: ${var.component}
- name: MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: "${var.instance}-${var.component}-mongo"
key: password
metadata:
annotations:
"k8up.io/backupcommand": "sh -c 'mongodump --username=$MONGODB_USER --password=$MONGODB_PASSWORD mongodb://localhost/$MONGODB_NAME --archive'"
"k8up.io/file-extension": ".archive"
security:
authentication:
modes: ["SCRAM"]