Files
auricom-home-cluster/kubernetes/apps/default/sharry/app/helmrelease.yaml
2023-12-01 00:05:41 +01:00

88 lines
2.2 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 sharry
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:
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: sharry-secret
containers:
main:
image:
repository: eikek0/sharry
tag: v1.12.1
args:
- "/opt/sharry.conf"
resources:
requests:
cpu: 50m
memory: 250Mi
limits:
memory: 1Gi
service:
main:
ports:
http:
port: 9090
ingress:
main:
enabled: true
className: "nginx"
annotations:
external-dns.alpha.kubernetes.io/enabled: "true"
external-dns.alpha.kubernetes.io/target: services.${SECRET_DOMAIN}.
nginx.ingress.kubernetes.io/proxy-body-size: "0"
hajimari.io/icon: mdi:account-arrow-up
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host
persistence:
config:
enabled: true
type: configMap
name: sharry-configmap
globalMounts:
- path: /opt/sharry.conf
subPath: sharry.conf