Files
auricom-home-cluster/kubernetes/apps/default/joplin/app/helmrelease.yaml
2023-11-30 22:17:46 +01:00

87 lines
2.3 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: 2.3.0
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:
controllers:
main:
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
image:
repository: ghcr.io/auricom/postgres-init
tag: 15.5@sha256:a337602f0dc11ee0e7f819ede78fa1a13e40a52adad737353efe10ce265a4b36
pullPolicy: IfNotPresent
envFrom: &envFrom
- secretRef:
name: joplin-secret
containers:
main:
image:
repository: joplin/server
tag: 2.13.5-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: *envFrom
resources:
requests:
cpu: 50m
memory: 256Mi
service:
main:
ports:
http:
port: *port
ingress:
main:
enabled: true
className: "nginx"
annotations:
external-dns.alpha.kubernetes.io/target: services.${SECRET_DOMAIN}.
hajimari.io/icon: mdi:text
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host