Files
auricom-home-cluster/kubernetes/apps/default/windmill/app/helmrelease.yaml
2024-08-14 23:26:44 +02:00

111 lines
2.8 KiB
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app windmill
spec:
interval: 30m
chart:
spec:
chart: windmill
version: 2.0.253
sourceRef:
kind: HelmRepository
name: windmill
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
uninstall:
keepHistory: false
values:
windmill:
app:
annotations:
reloader.stakater.com/auto: "true"
initContainers:
- name: init-db
image: ghcr.io/onedr0p/postgres-init:16
envFrom:
- secretRef:
name: &secret windmill-secret
- name: init-grants
image: ghcr.io/onedr0p/postgres-init:16
command:
- /bin/bash
- -c
- |
#!/bin/bash
set -o errexit
set -o nounset
/var/run/grants.sh
envFrom:
- secretRef:
name: *secret
volumeMounts:
- name: grants
readOnly: true
subPath: grants.sh
mountPath: /var/run/grants.sh
volumes:
- name: grants
configMap:
name: windmill-grants
defaultMode: 509
baseDomain: &host "windmill.${SECRET_EXTERNAL_DOMAIN}"
baseProtocol: https
appReplicas: 1
lspReplicas: 1
multiplayerReplicas: 1
workerGroups:
- name: default
replicas: 2
resources:
requests:
memory: 1028Mi
cpu: 500m
limits:
memory: 2048Mi
- name: native
replicas: 1
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 256Mi
ingress:
enabled: true
annotations:
gethomepage.dev/enabled: "true"
gethomepage.dev/name: Windmill
gethomepage.dev/description: Developer platform to turn scripts into workflows and UIs
gethomepage.dev/group: Applications
gethomepage.dev/icon: webhook.png
gethomepage.dev/href: https://windmill.${SECRET_EXTERNAL_DOMAIN}
gethomepage.dev/pod-selector: >-
app in (
windmill-app,
windmill-workers,
windmill-lsp
)
className: nginx
tls:
- hosts:
- *host
postgresql:
enabled: false
valuesFrom:
- kind: Secret
name: *secret
valuesKey: WINDMILL_POSTGRES_URL
targetPath: windmill.databaseUrl