This commit is contained in:
2023-08-11 17:41:13 +02:00
parent 76fafed977
commit 640104a958
4 changed files with 62 additions and 53 deletions

View File

@@ -62,10 +62,19 @@ resource "kubectl_manifest" "haraka_deploy" {
- name: config - name: config
mountPath: /app/config/wildduck.yaml mountPath: /app/config/wildduck.yaml
subPath: wildduck.yaml subPath: wildduck.yaml
- name: tls
mountPath: /app/config/tls_key.pem
subPath: tls.key
- name: tls
mountPath: /app/config/tls_cert.pem
subPath: tls.crt
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: "${var.instance}-haraka" name: "${var.instance}-haraka"
- name: tls
secret:
secretName: "${var.instance}-cert"
EOF EOF
} }

View File

@@ -6,21 +6,59 @@ metadata:
name: wildduck name: wildduck
description: null description: null
options: options:
sub-domain: issuer:
default: mail default: letsencrypt-prod
examples: examples:
- mail - letsencrypt-prod
type: string type: string
additional-domains: additional-domains:
default: [] default: []
items: items:
type: string type: string
type: array type: array
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
ingress-class: ingress-class:
default: traefik default: traefik
examples: examples:
- traefik - traefik
type: string type: string
redis:
default:
exporter:
enabled: true
image: quay.io/opstree/redis-exporter:v1.44.0
image: quay.io/opstree/redis:v7.0.5
storage: 2Gi
examples:
- exporter:
enabled: true
image: quay.io/opstree/redis-exporter:v1.44.0
image: quay.io/opstree/redis:v7.0.5
storage: 2Gi
properties:
exporter:
default:
enabled: true
image: quay.io/opstree/redis-exporter:v1.44.0
properties:
enabled:
default: true
type: boolean
image:
default: quay.io/opstree/redis-exporter:v1.44.0
type: string
type: object
image:
default: quay.io/opstree/redis:v7.0.5
type: string
storage:
default: 2Gi
type: string
type: object
backups: backups:
default: default:
enable: false enable: false
@@ -51,6 +89,11 @@ options:
default: backup-settings default: backup-settings
type: string type: string
type: object type: object
domain:
default: your-company
examples:
- your-company
type: string
images: images:
default: default:
haraka: haraka:
@@ -214,53 +257,10 @@ options:
type: string type: string
type: object type: object
type: object type: object
domain: sub-domain:
default: your-company default: mail
examples: examples:
- your-company - mail
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
redis:
default:
exporter:
enabled: true
image: quay.io/opstree/redis-exporter:v1.44.0
image: quay.io/opstree/redis:v7.0.5
storage: 2Gi
examples:
- exporter:
enabled: true
image: quay.io/opstree/redis-exporter:v1.44.0
image: quay.io/opstree/redis:v7.0.5
storage: 2Gi
properties:
exporter:
default:
enabled: true
image: quay.io/opstree/redis-exporter:v1.44.0
properties:
enabled:
default: true
type: boolean
image:
default: quay.io/opstree/redis-exporter:v1.44.0
type: string
type: object
image:
default: quay.io/opstree/redis:v7.0.5
type: string
storage:
default: 2Gi
type: string
type: object
domain-name:
default: your_company.com
examples:
- your_company.com
type: string type: string
dependencies: dependencies:
- dist: null - dist: null

View File

@@ -37,7 +37,7 @@ resource "kubectl_manifest" "webmail_deploy" {
- "--config=./config/webmail.toml" - "--config=./config/webmail.toml"
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 8000
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
@@ -111,7 +111,7 @@ resource "kubectl_manifest" "webmail_config" {
[www] [www]
host=false host=false
port=80 port=8000
proxy=false proxy=false
postsize="5MB" postsize="5MB"
log="dev" log="dev"

View File

@@ -91,8 +91,8 @@ resource "kubectl_manifest" "wildduck_deploy" {
configMap: configMap:
name: "${var.instance}-wildduck" name: "${var.instance}-wildduck"
- name: tls - name: tls
secret: secret:
secretName: "${var.instance}-cert" secretName: "${var.instance}-cert"
EOF EOF
} }