This commit is contained in:
2023-08-11 18:54:55 +02:00
parent aeef0a6eba
commit 2a5296229f
2 changed files with 48 additions and 46 deletions

View File

@@ -6,21 +6,6 @@ metadata:
name: wildduck name: wildduck
description: null description: null
options: options:
sub-domain:
default: mail
examples:
- mail
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
additional-domains:
default: []
items:
type: string
type: array
images: images:
default: default:
haraka: haraka:
@@ -184,6 +169,16 @@ options:
type: string type: string
type: object type: object
type: object type: object
additional-domains:
default: []
items:
type: string
type: array
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
redis: redis:
default: default:
exporter: exporter:
@@ -217,6 +212,26 @@ options:
default: 2Gi default: 2Gi
type: string type: string
type: object type: object
domain:
default: your-company
examples:
- your-company
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
sub-domain:
default: mail
examples:
- mail
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
backups: backups:
default: default:
enable: false enable: false
@@ -247,21 +262,6 @@ options:
default: backup-settings default: backup-settings
type: string type: string
type: object type: object
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
domain:
default: your-company
examples:
- your-company
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
dependencies: dependencies:
- dist: null - dist: null
category: dbo category: dbo

View File

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