k3s-cluster/cluster/apps/default/huginn/helm-release.yaml

71 lines
1.8 KiB
YAML

# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: huginn
namespace: default
spec:
interval: 5m
chart:
spec:
chart: app-template
version: 3.1.0
sourceRef:
kind: HelmRepository
name: bjws-charts
namespace: flux-system
values:
controllers:
main:
pod:
securityContext:
runAsNonRoot: true
# runAsUser: 10000
# runAsGroup: 10000
# fsGroup: 10000
# fsGroupChangePolicy: OnRootMismatch
containers:
main:
image:
repository: ghcr.io/huginn/huginn
tag: latest@sha256:84adac75461ad50fc1f8ed5f130223eb61b5cab3f43ea5c7dce9882ae81941a8
env:
HUGINN_DATABASE_ADAPTER: postgresql
HUGINN_DATABASE_HOST: postgresql.database
HUGINN_DATABASE_PORT: 5432
HUGINN_DATABASE_NAME: huginn
# Specified in huginn-env
# HUGINN_DATABASE_USERNAME:
# HUGINN_DATABASE_PASSWORD:
envFrom:
- secretRef:
name: huginn-env
service:
app:
controller: main
ports:
http:
port: 3000
ingress:
main:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
hosts:
- host: "huginn.${SECRET_NEW_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http