--- # yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: unpoller spec: interval: 30m chart: spec: chart: app-template version: 3.5.1 sourceRef: kind: HelmRepository name: bjw-s namespace: flux-system install: remediation: retries: 3 upgrade: cleanupOnFail: true remediation: strategy: rollback retries: 3 dependsOn: - name: vm-operator namespace: observability values: controllers: unpoller: containers: app: image: repository: ghcr.io/unpoller/unpoller tag: v2.13.1@sha256:2376aff5e18b8f9fdd618becc2ef668ce31deb4c0e74acc5bea88e6c20c23a39 env: TZ: America/Chicago UP_UNIFI_DEFAULT_ROLE: home-ops UP_UNIFI_DEFAULT_URL: https://10.33.44.1 UP_PROMETHEUS_HTTP_LISTEN: 0.0.0.0:80 UP_INFLUXDB_DISABLE: true envFrom: - secretRef: name: unpoller-secret probes: liveness: enabled: true readiness: enabled: true securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: { drop: ["ALL"] } resources: requests: cpu: 10m limits: memory: 128Mi defaultPodOptions: securityContext: runAsNonRoot: true runAsUser: 65534 runAsGroup: 65534 seccompProfile: { type: RuntimeDefault } service: app: controller: unpoller ports: http: port: 80 serviceMonitor: app: serviceName: unpoller endpoints: - port: http scheme: http path: /metrics interval: 2m # Unifi API only polls at 2m intervals scrapeTimeout: 10s