apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
  name: flaresolverr
  namespace: download
spec:
  interval: 5m
  chart:
    spec:
      chart: app-template
      version: 1.3.x
      sourceRef:
        kind: HelmRepository
        name: bjws-charts
        namespace: flux-system

  values:
    image:
      repository: ghcr.io/flaresolverr/flaresolverr
      tag: v3.3.13

    env:
      LOG_LEVEL: info

    service:
      main:
        ports:
          http:
            port: 8191

    probes:
      liveness:
        enabled: false
      startup:
        enabled: false

    ingress:
      main:
        enabled: false

    podSecurityContext:
      runAsNonRoot: true
      runAsUser: 1000
      runAsGroup: 1000
      fsGroup: 1000
      fsGroupChangePolicy: OnRootMismatch

    resources:
      requests:
        cpu: 5m
        memory: 400Mi
      limits:
        memory: 2Gi