--- # 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: &app atuin spec: interval: 30m chart: spec: chart: app-template version: 3.0.4 sourceRef: kind: HelmRepository name: bjw-s namespace: flux-system install: remediation: retries: 3 upgrade: cleanupOnFail: true remediation: strategy: rollback retries: 3 uninstall: keepHistory: false values: controllers: atuin: replicas: 2 strategy: RollingUpdate annotations: reloader.stakater.com/auto: "true" initContainers: init-db: image: repository: ghcr.io/onedr0p/postgres-init tag: 16 envFrom: &envFrom - secretRef: name: atuin-secret containers: app: image: repository: ghcr.io/atuinsh/atuin tag: v18.1.0@sha256:c1245d9bbaf9ef1610a973750003d634d55e52ffb3e14caa9bb47c867e1f6c6e env: ATUIN_HOST: 0.0.0.0 ATUIN_PORT: &port 80 ATUIN_OPEN_REGISTRATION: "true" ATUIN_METRICS__ENABLE: "true" ATUIN_METRICS__HOST: 0.0.0.0 ATUIN_METRICS__PORT: &metricsPort 8080 ATUIN_TLS__ENABLE: "false" envFrom: *envFrom args: [server, start] securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: { drop: [ALL] } resources: requests: cpu: 10m limits: memory: 256Mi pod: securityContext: runAsUser: 568 runAsGroup: 568 runAsNonRoot: true fsGroup: 568 fsGroupChangePolicy: OnRootMismatch service: app: controller: *app ports: http: port: *port metrics: port: *metricsPort serviceMonitor: app: serviceName: *app enabled: true endpoints: - port: metrics scheme: http path: /metrics interval: 1m scrapeTimeout: 10s ingress: main: enabled: true className: nginx annotations: hajimari.io/icon: mdi:powershell hosts: - host: &host "sh.${SECRET_CLUSTER_DOMAIN}" paths: - path: / service: identifier: app port: http tls: - hosts: - *host persistence: config: enabled: true type: emptyDir