Set up the repository structure following GitOps principles: - apps/ for application deployments (Stalwart as example) - infrastructure/ for cluster-wide configs (networking, monitoring) - docs/ for general documentation Migrated complete Stalwart deployment configuration including: - Multiple deployment variants (basic, OIDC-enabled) - Helm values files - Monitoring and dashboard configurations - Operational documentation (backup/restore, bootstrap) - Configuration patches and fixes Added comprehensive README files at each level to guide future use. Co-Authored-By: Paperclip <noreply@paperclip.ing>
66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: stalwart-stalwart-config
|
|
namespace: mail
|
|
labels:
|
|
app.kubernetes.io/instance: stalwart
|
|
app.kubernetes.io/name: stalwart
|
|
data:
|
|
config.json: |
|
|
{
|
|
"store": {
|
|
"db": {
|
|
"type": "rocksdb",
|
|
"path": "/var/lib/stalwart/data"
|
|
},
|
|
"blob": {
|
|
"type": "rocksdb",
|
|
"path": "/var/lib/stalwart/blobs"
|
|
}
|
|
},
|
|
"directory": {
|
|
"internal": {
|
|
"type": "internal",
|
|
"store": "db"
|
|
}
|
|
},
|
|
"authentication": {
|
|
"fallback-admin": {
|
|
"user": "admin",
|
|
"secret": "changeme"
|
|
}
|
|
},
|
|
"server": {
|
|
"hostname": "mail.basicstack.de",
|
|
"http": {
|
|
"bind": ["[::]:8080"],
|
|
"protocol": "http"
|
|
}
|
|
},
|
|
"session": {
|
|
"ehlo": {
|
|
"require": true
|
|
},
|
|
"auth": {
|
|
"directory": "internal"
|
|
}
|
|
},
|
|
"queue": {
|
|
"path": "/var/lib/stalwart/queue",
|
|
"hash": 64
|
|
}
|
|
}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: stalwart-stalwart-env
|
|
namespace: mail
|
|
labels:
|
|
app.kubernetes.io/instance: stalwart
|
|
app.kubernetes.io/name: stalwart
|
|
type: Opaque
|
|
stringData:
|
|
STALWART_LOG_LEVEL: "info"
|
|
STALWART_LOG_FORMAT: "json"
|