--- # 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 authelia namespace: default spec: interval: 30m chart: spec: chart: app-template version: 3.0.4 sourceRef: kind: HelmRepository name: bjw-s namespace: flux-system maxHistory: 2 install: createNamespace: true remediation: retries: 3 upgrade: cleanupOnFail: true remediation: strategy: rollback retries: 3 uninstall: keepHistory: false dependsOn: - name: lldap - name: redis namespace: database - name: smtp-relay values: defaultPodOptions: enableServiceLinks: false securityContext: runAsUser: 568 runAsGroup: 568 topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: app.kubernetes.io/name: *app controllers: authelia: 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: authelia-secret containers: app: image: repository: ghcr.io/authelia/authelia tag: v4.38.0-beta3@sha256:b48ae4d0ed9d1eee76efe382df60928bae550ec19e5663858dde6dc5f41cf285 env: AUTHELIA_AUTHENTICATION_BACKEND_LDAP_ADDITIONAL_GROUPS_DN: ou=groups AUTHELIA_AUTHENTICATION_BACKEND_LDAP_ADDITIONAL_USERS_DN: ou=people AUTHELIA_AUTHENTICATION_BACKEND_LDAP_BASE_DN: dc=home,dc=arpa AUTHELIA_AUTHENTICATION_BACKEND_LDAP_DISPLAY_NAME_ATTRIBUTE: displayName AUTHELIA_AUTHENTICATION_BACKEND_LDAP_GROUPS_FILTER: (member={dn}) AUTHELIA_AUTHENTICATION_BACKEND_LDAP_GROUP_NAME_ATTRIBUTE: cn AUTHELIA_AUTHENTICATION_BACKEND_LDAP_IMPLEMENTATION: custom AUTHELIA_AUTHENTICATION_BACKEND_LDAP_MAIL_ATTRIBUTE: mail AUTHELIA_AUTHENTICATION_BACKEND_LDAP_START_TLS: "false" AUTHELIA_AUTHENTICATION_BACKEND_LDAP_TIMEOUT: 5s AUTHELIA_AUTHENTICATION_BACKEND_LDAP_URL: ldap://lldap.default.svc.cluster.local:5389 AUTHELIA_AUTHENTICATION_BACKEND_LDAP_USER: uid=admin,ou=people,dc=home,dc=arpa AUTHELIA_AUTHENTICATION_BACKEND_LDAP_USERNAME_ATTRIBUTE: uid AUTHELIA_AUTHENTICATION_BACKEND_LDAP_USERS_FILTER: (&({username_attribute}={input})(objectClass=person)) AUTHELIA_AUTHENTICATION_BACKEND_PASSWORD_RESET_DISABLE: "true" AUTHELIA_AUTHENTICATION_BACKEND_REFRESH_INTERVAL: 1m AUTHELIA_DEFAULT_REDIRECTION_URL: https://auth.${SECRET_CLUSTER_DOMAIN} AUTHELIA_DUO_API_DISABLE: "true" AUTHELIA_LOG_LEVEL: info AUTHELIA_NOTIFIER_DISABLE_STARTUP_CHECK: "true" AUTHELIA_NOTIFIER_SMTP_DISABLE_REQUIRE_TLS: "true" AUTHELIA_NOTIFIER_SMTP_HOST: smtp-relay.default.svc.cluster.local. AUTHELIA_NOTIFIER_SMTP_PORT: "2525" AUTHELIA_NOTIFIER_SMTP_SENDER: "Authelia " AUTHELIA_SERVER_DISABLE_HEALTHCHECK: "true" AUTHELIA_SERVER_ADDRESS: tcp://0.0.0.0:8888 AUTHELIA_SESSION_DOMAIN: ${SECRET_CLUSTER_DOMAIN} AUTHELIA_SESSION_NAME: authelia-home-ops AUTHELIA_SESSION_REDIS_HOST: dragonfly.database.svc.cluster.local. AUTHELIA_SESSION_REDIS_PORT: 6379 AUTHELIA_TELEMETRY_METRICS_ADDRESS: tcp://0.0.0.0:8080 AUTHELIA_TELEMETRY_METRICS_ENABLED: "true" AUTHELIA_THEME: dark AUTHELIA_TOTP_ISSUER: authelia.com AUTHELIA_WEBAUTHN_DISABLE: "true" envFrom: *envFrom args: [--config, /config/configuration.yaml, --config.experimental.filters, expand-env] probes: liveness: &probes enabled: true custom: true spec: httpGet: path: /api/health port: &port 8888 initialDelaySeconds: 0 periodSeconds: 10 timeoutSeconds: 1 failureThreshold: 3 readiness: *probes startup: enabled: false resources: requests: cpu: 10m memory: 32Mi limits: memory: 128Mi service: app: controller: *app ports: http: port: *port metrics: port: 8080 serviceMonitor: app: serviceName: *app enabled: true endpoints: - port: metrics scheme: http path: /metrics interval: 1m scrapeTimeout: 10s ingress: app: enabled: true className: nginx annotations: external-dns.alpha.kubernetes.io/enabled: "true" external-dns.alpha.kubernetes.io/target: services.${SECRET_DOMAIN}. nginx.ingress.kubernetes.io/configuration-snippet: | add_header Cache-Control "no-store"; add_header Pragma "no-cache"; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; hajimari.io/icon: mdi:shield-account hosts: - host: &host auth.${SECRET_CLUSTER_DOMAIN} paths: - path: / service: identifier: app port: http tls: - hosts: - *host persistence: config: enabled: true type: configMap name: authelia-configmap globalMounts: - path: /config/configuration.yaml subPath: configuration.yaml readOnly: true