Skip to content

Commit

Permalink
Upgrade mailu; add cert-manager sync script.
Browse files Browse the repository at this point in the history
  • Loading branch information
pippijn committed Nov 4, 2023
1 parent f8680fa commit c3a4ae9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 27 deletions.
7 changes: 7 additions & 0 deletions code/kubes/cert-manager/sync.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

sudo helm install \
cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--version v1.13.2 \
2 changes: 1 addition & 1 deletion code/kubes/mailu-mailserver/sync.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

sudo helm upgrade --install mailu mailu/mailu --version 0.3.5 -n mailu-mailserver --create-namespace --values values.yaml
sudo helm upgrade --install mailu mailu/mailu --version 1.5.0 -n mailu-mailserver --create-namespace --values values.yaml
36 changes: 13 additions & 23 deletions code/kubes/mailu-mailserver/values.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
# The mail domain is required. See https://github.com/Mailu/Mailu/blob/master/docs/faq.rst#what-is-the-difference-between-domain-and-hostnames
domain: xinutec.org

# A list of mail hostnames is required. The first will be used as primary mail hostname
hostnames:
- mail.xinutec.org

- mail.xinutec.org
initialAccount:
domain: xinutec.org
#password: XXX # XXX: Set when using this file.
username: mailadmin

# default log level. can be overridden globally or per service
logLevel: WARNING

ingress:
className: nginx

# certmanager settings
certmanager:
issuerName: letsencrypt-prod
apiVersion: cert-manager.io/v1

enabled: true
username: "mailadmin"
domain: "xinutec.org"
password: "PM2qvTbUV5tJk6hD"
mode: "update"
logLevel: INFO
persistence:
size: 100Gi
storageClass: local-path

# The secret key is required for protecting authentication cookies and must be set individually for each deployment
#secretKey: XXX # XXX: Set when using this file.
ingress:
ingressClassName: "nginx"
annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging
secretKey: zbesu2ead8hu7xkk
1 change: 0 additions & 1 deletion code/kubes/nextcloud/nextcloud/nextcloud-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ metadata:
labels:
app: nextcloud
spec:
replicas: 1
selector:
matchLabels:
pod-label: nextcloud-db-pod
Expand Down
3 changes: 1 addition & 2 deletions code/kubes/nextcloud/nextcloud/nextcloud-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ metadata:
labels:
app: nextcloud
spec:
replicas: 1
selector:
matchLabels:
pod-label: nextcloud-server-pod
Expand All @@ -27,7 +26,7 @@ spec:
name: nginx-config
containers:
- name: nextcloud
image: nextcloud:26.0.5-fpm-alpine
image: nextcloud:26.0.8-fpm-alpine
imagePullPolicy: Always
env:
- name: MYSQL_HOST
Expand Down

0 comments on commit c3a4ae9

Please sign in to comment.