feat: change mailrise namespace

This commit is contained in:
auricom
2024-11-28 09:09:08 +01:00
parent 1c84d7e3c0
commit 60942d33f5
8 changed files with 7 additions and 12 deletions

View File

@@ -58,7 +58,7 @@ spec:
LANG: C.UTF-8
KRESUS_DB_TYPE: postgres
KRESUS_DIR: /config
KRESUS_EMAIL_HOST: mailrise.default.svc.cluster.local
KRESUS_EMAIL_HOST: mailrise.monitoring.svc.cluster.local
KRESUS_EMAIL_PORT: 8025
KRESUS_EMAIL_TRANSPORT: smtp
KRESUS_EMAIL_FROM: kresus@mailrise.home.arpa

View File

@@ -33,7 +33,6 @@ resources:
- ./lldap/ks.yaml
- ./lms/ks.yaml
- ./lychee/ks.yaml
- ./mailrise/ks.yaml
- ./maybe/ks.yaml
- ./music-transcode/ks.yaml
- ./navidrome/ks.yaml

View File

@@ -1,16 +0,0 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: mailrise
namespace: default
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: mailrise-secret
dataFrom:
- extract:
key: mailrise

View File

@@ -1,94 +0,0 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app mailrise
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
uninstall:
keepHistory: false
values:
defaultPodOptions:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: *app
controllers:
mailrise:
replicas: 2
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"
containers:
app:
image:
repository: docker.io/yoryan/mailrise
tag: 1.4.0@sha256:66082168090b9a83f01cc71a9d7b1994840adbbbffbe4d2cf644272fbbc23a1a
env:
TZ: ${TIMEZONE}
envFrom:
- secretRef:
name: mailrise-secret
resources:
requests:
cpu: 10m
memory: 10Mi
limits:
memory: 200Mi
service:
app:
controller: *app
type: LoadBalancer
loadBalancerIP: 192.168.169.112
externalTrafficPolicy: Local
ports:
http:
port: 8025
ingress:
app:
enabled: true
className: nginx
annotations:
hajimari.io/enable: "false"
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
enabled: true
type: configMap
name: mailrise-configmap
globalMounts:
- path: /etc/mailrise.conf
subPath: mailrise.conf
readOnly: true

View File

@@ -1,16 +0,0 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
configMapGenerator:
- name: mailrise-configmap
files:
- mailrise.conf=./mailrise.yaml
generatorOptions:
disableNameSuffixHash: true
annotations:
kustomize.toolkit.fluxcd.io/substitute: disabled

View File

@@ -1,12 +0,0 @@
---
configs:
kresus@mailrise.home.arpa:
mailrise:
title_template: "KRESUS"
urls:
- !env_var PUSHOVER_KRESUS
windmill@mailrise.home.arpa:
mailrise:
title_template: "WINDMILL"
urls:
- !env_var PUSHOVER_WINDMILL

View File

@@ -1,26 +0,0 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app mailrise
namespace: flux-system
spec:
targetNamespace: default
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/apps/default/mailrise/app
prune: true
sourceRef:
kind: GitRepository
name: home-ops-kubernetes
dependsOn:
- name: external-secrets-stores
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m
postBuild:
substitute:
APP: *app