116 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			116 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
stalwart:
 | 
						|
  controllers:
 | 
						|
    main:
 | 
						|
      type: deployment
 | 
						|
      replicas: 1
 | 
						|
      strategy: Recreate
 | 
						|
      revisionHistoryLimit: 3
 | 
						|
      containers:
 | 
						|
        main:
 | 
						|
          image:
 | 
						|
            repository: stalwartlabs/mail-server
 | 
						|
            tag: v0.9.4
 | 
						|
            pullPolicy: IfNotPresent
 | 
						|
          resources:
 | 
						|
            requests:
 | 
						|
              cpu: 100m
 | 
						|
              memory: 1Gi
 | 
						|
  serviceAccount:
 | 
						|
    create: true
 | 
						|
  service:
 | 
						|
    main:
 | 
						|
      controller: main
 | 
						|
      ports:
 | 
						|
        http:
 | 
						|
          port: 80
 | 
						|
          targetPort: 8080
 | 
						|
          protocol: HTTP
 | 
						|
        smtp:
 | 
						|
          port: 25
 | 
						|
          targetPort: 25
 | 
						|
          protocol: TCP
 | 
						|
        smtps:
 | 
						|
          port: 465
 | 
						|
          targetPort: 465
 | 
						|
          protocol: TCP
 | 
						|
        imap:
 | 
						|
          port: 143
 | 
						|
          targetPort: 143
 | 
						|
          protocol: TCP
 | 
						|
        imaps:
 | 
						|
          port: 993
 | 
						|
          targetPort: 993
 | 
						|
          protocol: TCP
 | 
						|
  ingress:
 | 
						|
    main:
 | 
						|
      className: tailscale
 | 
						|
      hosts:
 | 
						|
        - host: stalwart-cl01tl
 | 
						|
          paths:
 | 
						|
            - path: /
 | 
						|
              pathType: Prefix
 | 
						|
              service:
 | 
						|
                name: stalwart
 | 
						|
                port: 80
 | 
						|
      tls:
 | 
						|
        - secretName: stalwart-cl01tl
 | 
						|
          hosts:
 | 
						|
            - stalwart-cl01tl
 | 
						|
  persistence:
 | 
						|
    config:
 | 
						|
      storageClass: ceph-block
 | 
						|
      accessMode: ReadWriteOnce
 | 
						|
      size: 10Gi
 | 
						|
      retain: true
 | 
						|
      advancedMounts:
 | 
						|
        main:
 | 
						|
          main:
 | 
						|
            - path: /opt/stalwart-mail
 | 
						|
              readOnly: false
 | 
						|
valkey:
 | 
						|
  architecture: standalone
 | 
						|
  auth:
 | 
						|
    enabled: false
 | 
						|
elasticsearch:
 | 
						|
  global:
 | 
						|
    storageClass: ceph-block
 | 
						|
  extraEnvVars:
 | 
						|
    - name: discovery.type
 | 
						|
      value: single-node
 | 
						|
    - name: xpack.security.enabled
 | 
						|
      value: "true"
 | 
						|
  extraEnvVarsSecret: stalwart-elasticsearch-secret
 | 
						|
  master:
 | 
						|
    masterOnly: false
 | 
						|
    replicaCount: 1
 | 
						|
  data:
 | 
						|
    replicaCount: 0
 | 
						|
  coordinating:
 | 
						|
    replicaCount: 0
 | 
						|
  ingest:
 | 
						|
    enabled: false
 | 
						|
    replicaCount: 0
 | 
						|
postgres-16-cluster:
 | 
						|
  mode: standalone
 | 
						|
  cluster:
 | 
						|
    walStorage:
 | 
						|
      storageClass: local-path
 | 
						|
    storage:
 | 
						|
      storageClass: local-path
 | 
						|
    monitoring:
 | 
						|
      enabled: true
 | 
						|
      prometheusRule:
 | 
						|
        enabled: false
 | 
						|
  backup:
 | 
						|
    enabled: true
 | 
						|
    endpointURL: https://s3.us-east-2.amazonaws.com
 | 
						|
    destinationPath: s3://cl01tl-postgresql-backups/stalwart
 | 
						|
    endpointCredentials: stalwart-postgresql-16-cluster-backup-secret
 | 
						|
    backupIndex: 1
 | 
						|
    tags:
 | 
						|
      backupRetentionPolicy: "expire"
 | 
						|
      user: "cl01tl-stalwart-postgresql"
 | 
						|
    historyTags:
 | 
						|
      backupRetentionPolicy: "keep"
 | 
						|
      user: "cl01tl-stalwart-postgresql"
 |