Uninstall mailu

This commit is contained in:
Nikolai Rodionov 2023-04-28 17:39:56 +02:00
parent a9f5b833e8
commit 776d7272e2
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
12 changed files with 220 additions and 63 deletions

View File

@ -43,7 +43,7 @@ releases:
createNamespace: false createNamespace: false
- <<: *mailu - <<: *mailu
installed: true installed: false
namespace: mailu-application namespace: mailu-application
createNamespace: true createNamespace: true

View File

@ -1,8 +1,9 @@
secretKey: ENC[AES256_GCM,data:AY41e2XkC0e32L/9MWxK4YkbeGj/piZpgIGjU7Bd,iv:3DRmPKD3YHgqizBq2EAy/BC0qc0mSmpLLMCxRXdakRc=,tag:HgnEjhISDMqUkoObbpf3NA==,type:str] secretKey: ENC[AES256_GCM,data:yL0+ORBJ4ZWHrmoNvVowEA==,iv:XJuY89wtdz8b+9SnTMro33Ka/pBOymyhN3MLJOyujAA=,tag:hSXjKC6+6NLgCoiHlbqtxQ==,type:str]
initialAccount: initialAccount:
enabled: ENC[AES256_GCM,data:MvyEVw==,iv:ICIPR4oJW6pCRUks7Rk70NqdxVTXYqmM2qjQetppmEY=,tag:1FOK5MyPSTaiDayAAaPPuQ==,type:bool]
username: ENC[AES256_GCM,data:qSsqS5iQAyNzAQ+ZOLSWsie3k04b7qPUpcfU,iv:sXe2sjo4XesoEmjI9tY8gYd2psUlZCltBtLlIyE+v8w=,tag:uZeXnjU+7aLHI87qW+tiGw==,type:str] username: ENC[AES256_GCM,data:qSsqS5iQAyNzAQ+ZOLSWsie3k04b7qPUpcfU,iv:sXe2sjo4XesoEmjI9tY8gYd2psUlZCltBtLlIyE+v8w=,tag:uZeXnjU+7aLHI87qW+tiGw==,type:str]
domain: ENC[AES256_GCM,data:T5w/nPrq36iwZQdYHMQkisY1,iv:7EskbKJfRXMhkKZBgHy6nP8r1epcf7bNi8gAp4qY5TI=,tag:nZ+0BhvIy9Ap88SHaKhSvw==,type:str] domain: ENC[AES256_GCM,data:T5w/nPrq36iwZQdYHMQkisY1,iv:7EskbKJfRXMhkKZBgHy6nP8r1epcf7bNi8gAp4qY5TI=,tag:nZ+0BhvIy9Ap88SHaKhSvw==,type:str]
password: ENC[AES256_GCM,data:HR5qr3fZIOs7ye4DkwtacY2BcQbxu+27Yw==,iv:pq+0zNOhxAAWGsy579HQCrymcq0dfbOph1xyzkgPdcA=,tag:dSR8CW94YNaRujBK/Ysmtw==,type:str] password: ENC[AES256_GCM,data:dki7Cw2n5FxYsINS+aap4u8hkQBl4RUVW2KxSXrQ,iv:XxUHdy5xAWoH00yxItL9P5YuCJtCG4pfRUhZdOr0EWw=,tag:Lo7ahX7CAXS31lFDKEYRww==,type:str]
postgresql: postgresql:
auth: auth:
password: ENC[AES256_GCM,data:o2KghCpri6cUbGeh3LIjUO6TXBz4nrZSaU8tW7PD,iv:KNp+FM1DqC2h1/F2cudAQfQZA6UAD833SQbEQ/oKkTM=,tag:oHZzKLzZ+IIJDrjFDX/3cA==,type:str] password: ENC[AES256_GCM,data:o2KghCpri6cUbGeh3LIjUO6TXBz4nrZSaU8tW7PD,iv:KNp+FM1DqC2h1/F2cudAQfQZA6UAD833SQbEQ/oKkTM=,tag:oHZzKLzZ+IIJDrjFDX/3cA==,type:str]
@ -30,8 +31,8 @@ sops:
RjVVYmRKcERYZVhMT0ViZzR5cm8rMTgKizZBRrU/WauUmFYm9fnouiegNkYZkudp RjVVYmRKcERYZVhMT0ViZzR5cm8rMTgKizZBRrU/WauUmFYm9fnouiegNkYZkudp
QpOha6CggN8rItelbnWMHlzGZBzM+77mFocuGmvNuTY/YGSkXfLjLA== QpOha6CggN8rItelbnWMHlzGZBzM+77mFocuGmvNuTY/YGSkXfLjLA==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
lastmodified: "2023-04-22T17:13:44Z" lastmodified: "2023-04-28T08:37:51Z"
mac: ENC[AES256_GCM,data:GMqaB9uNNkO2oLFncxOIql2vQyLneopSCIZ75sbEQJpbEtc+UltcQ46EaK8MeII3vEuxa5EvEZQbaz04+zfi33lDyYIv/0IsIyKkZg1WtC+6pEzoXUCSAfSLFaPPSsvaycerU+S9rUl4hXPJJmyg/tdm75HWg9KrA0LSnlO2PSI=,iv:XbFgdnsDa8kbX2EwEmyTDiktq3VWm3QBbfpTCB8LCWo=,tag:kLLsjih/YJkQa9K07791oQ==,type:str] mac: ENC[AES256_GCM,data:NtXsrrs9yWlVO6oBQuJKHKPlmFMkqmu5BqOrYjdj9R7KdYycIWRDlNojieP9lghjSllgjkR3N4DpST9n6r6GHOkrpCl0eX12AsY0GUhSwaJzMgvX34Kzo+BjtISvODy0UzEVb9qKzbFuO9R4FMqyxBjTJirJVFT1EIB7Hxbb5Zc=,iv:OFKLvj96oRasDg5sYbJNS5KvZnxOXhh36Nwjl2gA1v0=,tag:aWsKrlbubuh+xTnyxvWeRg==,type:str]
pgp: [] pgp: []
unencrypted_suffix: _unencrypted unencrypted_suffix: _unencrypted
version: 3.7.3 version: 3.7.3

View File

@ -53,6 +53,8 @@ service:
port: 995 port: 995
protocol: TCP protocol: TCP
targetPort: 995 targetPort: 995
podAnnotations:
proxy.istio.io/config: '{"gatewayTopology" : { "numTrustedProxies": 0, "forwardClientCertDetails": SANITIZE } }'
resources: resources:
requests: requests:
cpu: 100m cpu: 100m

View File

@ -9,7 +9,7 @@ certificate:
name: badhouseplants-issuer name: badhouseplants-issuer
dnsNames: dnsNames:
- badhouseplants.net - badhouseplants.net
- "*.badhouseplants.net" - "email.badhouseplants.net"
# ------------------------------------------ # ------------------------------------------
# -- Istio extenstion. Just because I'm # -- Istio extenstion. Just because I'm
# -- not using ingress nginx # -- not using ingress nginx
@ -23,62 +23,67 @@ istio:
hostname: email.badhouseplants.net hostname: email.badhouseplants.net
service: mailu-front service: mailu-front
port: 80 port: 80
- name: mailu-smpt # - name: mailu-smpt
kind: tcp # kind: tcp
gateway: badhouseplants-mail # gateway: badhouseplants-mail
service: mailu-front # service: mailu-front
hostname: "*" # hostname: email.badhousplants.net
port_match: 25 # port_match: 25
port: 25 # port: 25
- name: mailu-smpts # - name: mailu-smpts
kind: tcp # kind: tcp
gateway: badhouseplants-mail # gateway: badhouseplants-mail
port_match: 465 # port_match: 465
hostname: "*" # hostname: email.badhousplants.net
service: mailu-front # service: mailu-front
port: 465 # port: 465
- name: mailu-smpt-startls # - name: mailu-smpt-startls
kind: tcp # kind: tcp
gateway: badhouseplants-mail # gateway: badhouseplants-mail
hostname: "*" # hostname: email.badhousplants.net
port_match: 587 # port_match: 587
service: mailu-front # service: mailu-front
port: 587 # port: 587
- name: mailu-imap # - name: mailu-imap
kind: tcp # kind: tcp
hostname: "*" # hostname: email.badhousplants.net
gateway: badhouseplants-mail # gateway: badhouseplants-mail
port_match: 143 # port_match: 143
service: mailu-front # service: mailu-front
port: 143 # port: 143
- name: mailu-imaps # - name: mailu-imaps
kind: tcp # kind: tcp
gateway: badhouseplants-mail # gateway: badhouseplants-mail
hostname: "*" # hostname: email.badhousplants.net
port_match: 993 # port_match: 993
service: mailu-front # service: mailu-front
port: 993 # port: 993
- name: mailu-pop3 # - name: mailu-pop3
kind: tcp # kind: tcp
gateway: badhouseplants-mail # gateway: badhouseplants-mail
port_match: 110 # port_match: 110
hostname: "*" # hostname: email.badhousplants.net
service: mailu-front # service: mailu-front
port: 110 # port: 110
- name: mailu-pop3s # - name: mailu-pop3s
kind: tcp # kind: tcp
gateway: badhouseplants-mail # gateway: badhouseplants-mail
port_match: 993 # port_match: 993
hostname: "*" # hostname: email.badhousplants.net
service: mailu-front # service: mailu-front
port: 993 # port: 993
subnet: 10.1.0.0/16 subnet: 10.1.0.0/16
sessionCookieSecure: false sessionCookieSecure: true
hostnames: hostnames:
- email.badhouseplants.net - post.badhouseplants.net
domain: badhouseplants.net domain: badhouseplants.net
persistence: persistence:
single_pvc: false single_pvc: false
limits:
messageRatelimit:
value: "10/day"
tls:
outboundLevel: secure
ingress: ingress:
enabled: false enabled: false
tls: false tls: false
@ -108,10 +113,10 @@ redis:
postfix: postfix:
resources: resources:
requests: requests:
memory: 100Mi memory: 1024Mi
cpu: 70m cpu: 200m
limits: limits:
memory: 200Mi memory: 1024Mi
cpu: 200m cpu: 200m
persistence: persistence:
size: 1Gi size: 1Gi
@ -148,11 +153,11 @@ postgresql:
enabled: false enabled: false
storageClass: "" storageClass: ""
accessMode: ReadWriteOnce accessMode: ReadWriteOnce
size: 1Gi size: 2Gi
front: front:
logLevel: DEBUG logLevel: DEBUG
hostPort: hostPort:
enabled: false enabled: true
rspamd: rspamd:
resources: resources:
requests: requests:
@ -173,4 +178,4 @@ webmail:
storageClass: "" storageClass: ""
accessModes: [ReadWriteOnce] accessModes: [ReadWriteOnce]
claimNameOverride: "" claimNameOverride: ""
annotations: {} annotations: {}

View File

@ -40,6 +40,11 @@ releases:
installed: true installed: true
namespace: openvpn-service namespace: openvpn-service
createNamespace: false createNamespace: false
- <<: *metallb
installed: true
namespace: metallb-system
createNamespace: true
helmfiles: helmfiles:
- path: {{.Environment.Name }}/helmfile.yaml - path: {{.Environment.Name }}/helmfile.yaml

View File

@ -0,0 +1,10 @@
# addresspool.yaml
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: custom-addresspool
namespace: metallb-system
spec:
addresses:
- 195.201.250.50-195.201.250.50

View File

@ -0,0 +1,17 @@
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: proxy-protocol
namespace: istio-system
spec:
workloadSelector:
labels:
istio: ingressgateway
configPatches:
- applyTo: LISTENER
patch:
operation: MERGE
value:
listener_filters:
- name: envoy.listener.proxy_protocol

View File

@ -0,0 +1,17 @@
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: proxy-protocol
namespace: istio-system
spec:
configPatches:
- applyTo: LISTENER
patch:
operation: MERGE
value:
listener_filters:
- name: envoy.listener.proxy_protocol
- name: envoy.listener.tls_inspector
workloadSelector:
labels:
istio: ingressgateway

83
manifests/debug/test.yaml Normal file
View File

@ -0,0 +1,83 @@
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: httpbin-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP2
hosts:
- "test.badhouseplants.net"
- hosts:
- "test.badhouseplants.net"
port:
name: https
number: 443
protocol: HTTPS
tls:
credentialName: badhouseplants-wildcard-tls
mode: SIMPLE
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- "test.badhouseplants.net"
gateways:
- httpbin-gateway
http:
- route:
- destination:
host: httpbin
port:
number: 8000
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: httpbin
---
apiVersion: v1
kind: Service
metadata:
name: httpbin
labels:
app: httpbin
service: httpbin
spec:
ports:
- name: http
port: 8000
targetPort: 80
selector:
app: httpbin
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpbin
spec:
replicas: 1
selector:
matchLabels:
app: httpbin
version: v1
template:
metadata:
labels:
app: httpbin
version: v1
spec:
serviceAccountName: httpbin
containers:
- image: docker.io/kong/httpbin
imagePullPolicy: IfNotPresent
name: httpbin
ports:
- containerPort: 80

View File

@ -0,0 +1,10 @@
# addresspool.yaml
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: custom-addresspool
namespace: metallb-system
spec:
addresses:
- 91.232.225.63-91.232.225.63

View File

@ -79,6 +79,11 @@ templates:
values: values:
- common/values.{{ .Release.Name }}.yaml - common/values.{{ .Release.Name }}.yaml
metallb: &metallb
name: metallb
chart: metallb/metallb
version: 0.13.9
cert-manager: &cert-manager cert-manager: &cert-manager
name: cert-manager name: cert-manager
chart: jetstack/cert-manager chart: jetstack/cert-manager

View File

@ -28,3 +28,5 @@ repositories:
url: https://bedag.github.io/helm-charts/ url: https://bedag.github.io/helm-charts/
- name: mailu - name: mailu
url: https://mailu.github.io/helm-charts/ url: https://mailu.github.io/helm-charts/
- name: metallb
url: https://metallb.github.io/metallb