Install email server
This commit is contained in:
parent
54a7dad780
commit
212930ec1a
@ -87,6 +87,10 @@ releases:
|
|||||||
namespace: database-service
|
namespace: database-service
|
||||||
createNamespace: true
|
createNamespace: true
|
||||||
|
|
||||||
|
- <<: *docker-mailserver
|
||||||
|
installed: true
|
||||||
|
namespace: mail-service
|
||||||
|
createNamespace: true
|
||||||
|
|
||||||
bases:
|
bases:
|
||||||
- ../environments.yaml
|
- ../environments.yaml
|
||||||
|
@ -7,7 +7,7 @@ istio:
|
|||||||
enabled: true
|
enabled: true
|
||||||
istio:
|
istio:
|
||||||
- name: argocd-http
|
- name: argocd-http
|
||||||
gateway: badhouseplants-net
|
gateway: istio-system/badhouseplants-net
|
||||||
kind: http
|
kind: http
|
||||||
hostname: argo.badhouseplants.net
|
hostname: argo.badhouseplants.net
|
||||||
service: argocd-server
|
service: argocd-server
|
||||||
|
@ -7,7 +7,7 @@ istio:
|
|||||||
enabled: true
|
enabled: true
|
||||||
istio:
|
istio:
|
||||||
- name: bitwarden-http
|
- name: bitwarden-http
|
||||||
gateway: badhouseplants-net
|
gateway: istio-system/badhouseplants-net
|
||||||
kind: http
|
kind: http
|
||||||
hostname: bitwarden.badhouseplants.net
|
hostname: bitwarden.badhouseplants.net
|
||||||
service: bitwarden-vaultwarden
|
service: bitwarden-vaultwarden
|
||||||
|
119
badhouseplants/values/values.docker-mailserver.yaml
Normal file
119
badhouseplants/values/values.docker-mailserver.yaml
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
istio_gateway:
|
||||||
|
enabled: true
|
||||||
|
gateways:
|
||||||
|
- name: badhouseplants-email
|
||||||
|
servers:
|
||||||
|
- hosts:
|
||||||
|
- "*"
|
||||||
|
port:
|
||||||
|
name: smtp
|
||||||
|
number: 25
|
||||||
|
protocol: TCP
|
||||||
|
- hosts:
|
||||||
|
- "*"
|
||||||
|
port:
|
||||||
|
name: pop3
|
||||||
|
number: 110
|
||||||
|
protocol: TCP
|
||||||
|
- hosts:
|
||||||
|
- "*"
|
||||||
|
port:
|
||||||
|
name: imap
|
||||||
|
number: 143
|
||||||
|
protocol: TCP
|
||||||
|
- hosts:
|
||||||
|
- "*"
|
||||||
|
port:
|
||||||
|
name: smtps
|
||||||
|
number: 465
|
||||||
|
protocol: TCP
|
||||||
|
- hosts:
|
||||||
|
- "*"
|
||||||
|
port:
|
||||||
|
name: submission
|
||||||
|
number: 587
|
||||||
|
protocol: TCP
|
||||||
|
- hosts:
|
||||||
|
- "*"
|
||||||
|
port:
|
||||||
|
name: imaps
|
||||||
|
number: 993
|
||||||
|
protocol: TCP
|
||||||
|
- hosts:
|
||||||
|
- "*"
|
||||||
|
port:
|
||||||
|
name: pop3s
|
||||||
|
number: 995
|
||||||
|
protocol: TCP
|
||||||
|
istio:
|
||||||
|
enabled: true
|
||||||
|
istio:
|
||||||
|
- name: docker-mailserver-smpt
|
||||||
|
kind: tcp
|
||||||
|
gateway: badhouseplants-email
|
||||||
|
service: docker-mailserver
|
||||||
|
hostname: badhousplants.net
|
||||||
|
port_match: 25
|
||||||
|
port: 25
|
||||||
|
- name: docker-mailserver-smpts
|
||||||
|
kind: tcp
|
||||||
|
gateway: badhouseplants-email
|
||||||
|
port_match: 465
|
||||||
|
hostname: badhousplants.net
|
||||||
|
service: docker-mailserver
|
||||||
|
port: 465
|
||||||
|
- name: docker-mailserver-smpt-startls
|
||||||
|
kind: tcp
|
||||||
|
gateway: badhouseplants-email
|
||||||
|
hostname: badhousplants.net
|
||||||
|
port_match: 587
|
||||||
|
service: docker-mailserver
|
||||||
|
port: 587
|
||||||
|
- name: docker-mailserver-imap
|
||||||
|
kind: tcp
|
||||||
|
hostname: badhousplants.net
|
||||||
|
gateway: badhouseplants-email
|
||||||
|
port_match: 143
|
||||||
|
service: docker-mailserver
|
||||||
|
port: 143
|
||||||
|
- name: docker-mailserver-imaps
|
||||||
|
kind: tcp
|
||||||
|
gateway: badhouseplants-email
|
||||||
|
hostname: badhousplants.net
|
||||||
|
port_match: 993
|
||||||
|
service: docker-mailserver
|
||||||
|
port: 993
|
||||||
|
- name: docker-mailserver-pop3
|
||||||
|
kind: tcp
|
||||||
|
gateway: badhouseplants-email
|
||||||
|
port_match: 110
|
||||||
|
hostname: badhousplants.net
|
||||||
|
service: docker-mailserver
|
||||||
|
port: 110
|
||||||
|
- name: docker-mailserver-pop3s
|
||||||
|
kind: tcp
|
||||||
|
gateway: badhouseplants-email
|
||||||
|
port_match: 993
|
||||||
|
hostname: badhousplants.net
|
||||||
|
service: docker-mailserver
|
||||||
|
port: 993
|
||||||
|
|
||||||
|
demoMode:
|
||||||
|
enabled: false
|
||||||
|
domains:
|
||||||
|
- badhouseplants.net
|
||||||
|
- "*.badhouseplants.net"
|
||||||
|
ssl:
|
||||||
|
issuer:
|
||||||
|
name: badhouseplants-issuer
|
||||||
|
kind: ClusterIssuer
|
||||||
|
dnsname: badhouseplants.net
|
||||||
|
dns01provider: cloudflare
|
||||||
|
useExisting: false
|
||||||
|
pod:
|
||||||
|
dockermailserver:
|
||||||
|
enable_fail2ban: "0"
|
||||||
|
ssl_type: manual
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
spfTestsDisabled: true
|
@ -6,7 +6,7 @@ istio:
|
|||||||
enabled: true
|
enabled: true
|
||||||
istio:
|
istio:
|
||||||
- name: drone-http
|
- name: drone-http
|
||||||
gateway: badhouseplants-net
|
gateway: istio-system/badhouseplants-net
|
||||||
kind: http
|
kind: http
|
||||||
hostname: drone.badhouseplants.net
|
hostname: drone.badhouseplants.net
|
||||||
service: drone
|
service: drone
|
||||||
|
@ -7,7 +7,7 @@ istio:
|
|||||||
enabled: true
|
enabled: true
|
||||||
istio:
|
istio:
|
||||||
- name: funkwhale-http
|
- name: funkwhale-http
|
||||||
gateway: badhouseplants-net
|
gateway: istio-system/badhouseplants-net
|
||||||
kind: http
|
kind: http
|
||||||
hostname: funkwhale.badhouseplants.net
|
hostname: funkwhale.badhouseplants.net
|
||||||
service: funkwhale
|
service: funkwhale
|
||||||
|
@ -8,13 +8,13 @@ istio:
|
|||||||
istio:
|
istio:
|
||||||
- name: gitea-http
|
- name: gitea-http
|
||||||
kind: http
|
kind: http
|
||||||
gateway: badhouseplants-net
|
gateway: istio-system/badhouseplants-net
|
||||||
hostname: git.badhouseplants.net
|
hostname: git.badhouseplants.net
|
||||||
service: gitea-http
|
service: gitea-http
|
||||||
port: 3000
|
port: 3000
|
||||||
- name: gitea-ssh
|
- name: gitea-ssh
|
||||||
kind: tcp
|
kind: tcp
|
||||||
gateway: badhouseplants-ssh
|
gateway: istio-system/badhouseplants-ssh
|
||||||
hostname: "*"
|
hostname: "*"
|
||||||
port_match: 22
|
port_match: 22
|
||||||
service: gitea-ssh
|
service: gitea-ssh
|
||||||
|
@ -18,7 +18,7 @@ istio:
|
|||||||
enabled: true
|
enabled: true
|
||||||
istio:
|
istio:
|
||||||
- name: minecraft-tcp
|
- name: minecraft-tcp
|
||||||
gateway: badhouseplants-minecraft
|
gateway: istio-system/badhouseplants-minecraft
|
||||||
kind: tcp
|
kind: tcp
|
||||||
port_match: 25565
|
port_match: 25565
|
||||||
hostname: "*"
|
hostname: "*"
|
||||||
|
@ -7,13 +7,13 @@ istio:
|
|||||||
enabled: true
|
enabled: true
|
||||||
istio:
|
istio:
|
||||||
- name: minio-http
|
- name: minio-http
|
||||||
gateway: badhouseplants-net
|
gateway: istio-system/badhouseplants-net
|
||||||
kind: http
|
kind: http
|
||||||
hostname: minio.badhouseplants.net
|
hostname: minio.badhouseplants.net
|
||||||
service: minio-console
|
service: minio-console
|
||||||
port: 9001
|
port: 9001
|
||||||
- name: s3-http
|
- name: s3-http
|
||||||
gateway: badhouseplants-net
|
gateway: istio-system/badhouseplants-net
|
||||||
kind: http
|
kind: http
|
||||||
hostname: s3.badhouseplants.net
|
hostname: s3.badhouseplants.net
|
||||||
service: minio
|
service: minio
|
||||||
|
@ -7,7 +7,7 @@ istio:
|
|||||||
enabled: true
|
enabled: true
|
||||||
istio:
|
istio:
|
||||||
- name: nrodionov-http
|
- name: nrodionov-http
|
||||||
gateway: nrodionov-info
|
gateway: istio-system/nrodionov-info
|
||||||
kind: http
|
kind: http
|
||||||
hostname: dev.nrodionov.info
|
hostname: dev.nrodionov.info
|
||||||
service: nrodionov-wordpress
|
service: nrodionov-wordpress
|
||||||
|
@ -7,19 +7,12 @@ istio:
|
|||||||
enabled: true
|
enabled: true
|
||||||
istio:
|
istio:
|
||||||
- name: openvpn-tcp
|
- name: openvpn-tcp
|
||||||
gateway: badhouseplants-vpn
|
gateway: istio-system/badhouseplants-vpn
|
||||||
kind: tcp
|
kind: tcp
|
||||||
port_match: 1194
|
port_match: 1194
|
||||||
hostname: "*"
|
hostname: "*"
|
||||||
service: openvpn
|
service: openvpn
|
||||||
port: 1194
|
port: 1194
|
||||||
- name: openvpn-tcp-fake-port
|
|
||||||
gateway: badhouseplants-vpn
|
|
||||||
kind: tcp
|
|
||||||
port_match: 25
|
|
||||||
hostname: "*"
|
|
||||||
service: openvpn
|
|
||||||
port: 1194
|
|
||||||
# ------------------------------------------
|
# ------------------------------------------
|
||||||
image:
|
image:
|
||||||
tag: v2.6.5-xor-4.0.0beta08
|
tag: v2.6.5-xor-4.0.0beta08
|
||||||
|
@ -7,7 +7,7 @@ istio:
|
|||||||
enabled: true
|
enabled: true
|
||||||
istio:
|
istio:
|
||||||
- name: grafana-https
|
- name: grafana-https
|
||||||
gateway: badhouseplants-net
|
gateway: istio-system/badhouseplants-net
|
||||||
kind: http
|
kind: http
|
||||||
hostname: "grafana.badhouseplants.net"
|
hostname: "grafana.badhouseplants.net"
|
||||||
service: prometheus-grafana
|
service: prometheus-grafana
|
||||||
|
16
common/values.istio-gateway.yaml
Normal file
16
common/values.istio-gateway.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
istio_gateway:
|
||||||
|
templates:
|
||||||
|
- |
|
||||||
|
{{ range .Values.gateways }}
|
||||||
|
---
|
||||||
|
apiVersion: networking.istio.io/v1beta1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: {{ .name }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
istio: ingressgateway
|
||||||
|
servers:
|
||||||
|
{{ toYaml .servers | indent 4 }}
|
||||||
|
{{ end }}
|
@ -10,7 +10,7 @@ istio:
|
|||||||
name: {{ .name }}
|
name: {{ .name }}
|
||||||
spec:
|
spec:
|
||||||
gateways:
|
gateways:
|
||||||
- "istio-system/{{ .gateway }}"
|
- "{{ .gateway }}"
|
||||||
hosts:
|
hosts:
|
||||||
- {{ .hostname | quote }}
|
- {{ .hostname | quote }}
|
||||||
{{- if eq .kind "http" }}
|
{{- if eq .kind "http" }}
|
||||||
|
@ -41,6 +41,14 @@ templates:
|
|||||||
# ----------------------------
|
# ----------------------------
|
||||||
# -- Extensions
|
# -- Extensions
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
|
ext-istio-gateway:
|
||||||
|
dependencies:
|
||||||
|
- chart: bedag/raw
|
||||||
|
version: 2.0.0
|
||||||
|
alias: istio_gateway
|
||||||
|
values:
|
||||||
|
- '{{ requiredEnv "PWD" }}/common/values.istio-gateway.yaml'
|
||||||
|
|
||||||
ext-istio-resource:
|
ext-istio-resource:
|
||||||
dependencies:
|
dependencies:
|
||||||
- chart: bedag/raw
|
- chart: bedag/raw
|
||||||
@ -316,3 +324,13 @@ templates:
|
|||||||
inherit:
|
inherit:
|
||||||
- template: default-env-values
|
- template: default-env-values
|
||||||
- template: default-env-secrets
|
- template: default-env-secrets
|
||||||
|
|
||||||
|
docker-mailserver: &docker-mailserver
|
||||||
|
name: docker-mailserver
|
||||||
|
chart: allanger-gitea/docker-mailserver
|
||||||
|
version: 2.1.3
|
||||||
|
inherit:
|
||||||
|
- template: default-env-values
|
||||||
|
- template: ext-istio-gateway
|
||||||
|
- template: ext-istio-resource
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user