Files
auricom-home-cluster/kubernetes/apps/default/joplin/app/helmrelease.yaml
auricom edee536819 ♻️ schemas
2023-08-26 12:21:10 +02:00

82 lines
1.9 KiB
YAML

---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: &app joplin
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 1.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
global:
nameOverride: *app
controller:
annotations:
reloader.stakater.com/auto: "true"
initContainers:
01-init-db:
image: ghcr.io/auricom/postgres-init:15.4
imagePullPolicy: IfNotPresent
envFrom: &envFrom
- secretRef:
name: &secret joplin-secret
image:
repository: joplin/server
tag: 2.12.1-beta
env:
APP_BASE_URL: https://joplin.${SECRET_CLUSTER_DOMAIN}
APP_PORT: &port 8080
DB_CLIENT: pg
MAILER_ENABLED: 1
MAILER_HOST: smtp-relay.default.svc.cluster.local.
MAILER_PORT: 2525
MAILER_SECURITY: none
MAILER_NOREPLY_NAME: JoplinServer
MAILER_NOREPLY_EMAIL: joplin@${SECRET_DOMAIN}
envFrom:
- secretRef:
name: joplin-secret
service:
main:
ports:
http:
port: *port
ingress:
main:
enabled: true
ingressClassName: "nginx"
annotations:
external-dns.home.arpa/enabled: "true"
hajimari.io/icon: mdi:text
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
resources:
requests:
cpu: 50m
memory: 256Mi