adguard-home

by egeback

Helm chartv2.0.15App v0.107.80Verified publisher

DNS proxy as ad-blocker for local network

About this chart

adguard-home

DNS proxy as ad-blocker for local network

Homepage: https://github.com/egeback/helm-charts/blob/main/charts/adguard-home

Maintainers

NameEmailUrl
egeback[email protected]

Source Code

Requirements

Kubernetes: >=1.16.0-0

RepositoryNameVersion
https://bjw-s-labs.github.io/helm-chartscommon5.3.0

Storage options

Either use persistance volume claims or volume clam templates. Using volume claim templates indvidual storage per instance can be used. Adguard uses two storage locations:

  • Config. Stores configuration file, AdGuardHome.yaml.
  • Work. Stores runtime data, eg. query log.

Volume templates:

controllers:
  main:
    statefulset:
        volumeClaimTemplates:
        - accessMode: ReadWriteOnce
            globalMounts:
            - path: /opt/adguardhome/work
            name: data
            size: 500Mi
            storageClass: local-path
        - accessMode: ReadWriteOnce
            name: config
            size: 10Mi
            storageClass: nfs-client

Values

KeyTypeDefaultDescription
configMaps.config.data."AdGuardHome.yaml"string"bind_host: 0.0.0.0\nbind_port: 3000\nbeta_bind_port: 0\nusers: []\nauth_attempts: 5\nblock_auth_min: 15\nhttp_proxy: \"\"\nlanguage: \"\"\ndebug_pprof: false\nweb_session_ttl: 720\ndns:\n bind_hosts:\n - 0.0.0.0\n port: 53\n statistics_interval: 1\n querylog_enabled: true\n querylog_file_enabled: true\n querylog_interval: 2160h\n querylog_size_memory: 1000\n anonymize_client_ip: false\n protection_enabled: true\n blocking_mode: default\n blocking_ipv4: \"\"\n blocking_ipv6: \"\"\n blocked_response_ttl: 10\n parental_block_host: family-block.dns.adguard.com\n safebrowsing_block_host: standard-block.dns.adguard.com\n ratelimit: 20\n ratelimit_whitelist: []\n refuse_any: true\n upstream_dns:\n - https://dns10.quad9.net/dns-query\n upstream_dns_file: \"\"\n bootstrap_dns:\n - 9.9.9.10\n - 149.112.112.10\n - 2620:fe::10\n - 2620:fe::fe:10\n all_servers: false\n fastest_addr: false\n fastest_timeout: 1s\n allowed_clients: []\n disallowed_clients: []\n blocked_hosts:\n - version.bind\n - id.server\n - hostname.bind\n trusted_proxies:\n - 127.0.0.0/8\n - ::1/128\n cache_size: 4194304\n cache_ttl_min: 0\n cache_ttl_max: 0\n cache_optimistic: false\n bogus_nxdomain: []\n aaaa_disabled: false\n enable_dnssec: false\n edns_client_subnet: false\n max_goroutines: 300\n ipset: []\n filtering_enabled: true\n filters_update_interval: 24\n parental_enabled: false\n safesearch_enabled: false\n safebrowsing_enabled: false\n safebrowsing_cache_size: 1048576\n safesearch_cache_size: 1048576\n parental_cache_size: 1048576\n cache_time: 30\n rewrites: []\n blocked_services: []\n upstream_timeout: 10s\n private_networks: []\n use_private_ptr_resolvers: true\n local_ptr_upstreams: []\ntls:\n enabled: false\n server_name: \"\"\n force_https: false\n port_https: 443\n port_dns_over_tls: 853\n port_dns_over_quic: 853\n port_dnscrypt: 0\n dnscrypt_config_file: \"\"\n allow_unencrypted_doh: false\n strict_sni_check: false\n certificate_chain: \"\"\n private_key: \"\"\n certificate_path: \"\"\n private_key_path: \"\"\nfilters:\n- enabled: true\n url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt\n name: AdGuard DNS filter\n id: 1\n- enabled: false\n url: https://adaway.org/hosts.txt\n name: AdAway Default Blocklist\n id: 2\nwhitelist_filters: []\nuser_rules: []\ndhcp:\n enabled: false\n interface_name: \"\"\n local_domain_name: lan\n dhcpv4:\n gateway_ip: \"\"\n subnet_mask: \"\"\n range_start: \"\"\n range_end: \"\"\n lease_duration: 86400\n icmp_timeout_msec: 1000\n options: []\n dhcpv6:\n range_start: \"\"\n lease_duration: 86400\n ra_slaac_only: false\n ra_allow_slaac: false\nclients:\n runtime_sources:\n whois: true\n arp: true\n rdns: true\n dhcp: true\n hosts: true\n persistent: []\nlog_compress: false\nlog_localtime: false\nlog_max_backups: 0\nlog_max_size: 100\nlog_max_age: 3\nlog_file: \"\"\nverbose: false\nos:\n group: \"\"\n user: \"\"\n rlimit_nofile: 0\nschema_version: 14\n"
configMaps.config.enabledbooltrueEnable default config
controllers.main.containers.main.argslist["--config","/config/AdGuardHome.yaml","--work-dir","/opt/adguardhome/work","--no-check-update"]arguments passed to the adguard-home command line.
controllers.main.containers.main.envobjectSee belowenvironment variables.
controllers.main.containers.main.env.TZstring"UTC"Set the container timezone
controllers.main.containers.main.image.pullPolicystring"IfNotPresent"image pull policy
controllers.main.containers.main.image.repositorystring"adguard/adguardhome"image repository
controllers.main.containers.main.image.tagstring"{{ .Chart.AppVersion }}"
controllers.main.initContainersobject{"copy-configmap":{"command":["sh","-c","if [ ! -f /config/AdGuardHome.yaml ]; then\n mkdir -p /config\n cp /tmp/AdGuardHome.yaml /config/AdGuardHome.yaml\nfi\n"],"image":{"pullPolicy":"IfNotPresent","repository":"busybox","tag":"1.38.0"},"securityContext":{"runAsUser":0}}}Uncomment to run as non root and to run in a non privileged namespace, defaultContainerOptions: securityContext: allowPrivilegeEscalation: false privileged: false readOnlyRootFilesystem: false runAsNonRoot: true runAsUser: 1000 capabilities: add: - NET_BIND_SERVICE drop: - ALL
controllers.main.initContainers.copy-configmapobjectSee values.yamlConfigures an initContainer that copies the configmap to the AdGuardHome conf directory It does NOT overwrite when the file already exists.
controllers.main.replicasint1Number of pods to load balance between
defaultPodOptions.hostNetworkbooltrue
ingress.mainobjectSee values.yamlEnable and configure ingress settings for the chart under this key.
options.runAsNonRoot.enabledboolfalseenable non root mode that can be executed in a non privileged namespace
options.runAsNonRoot.fsGroupint1000filesystem group for non root mode
options.runAsNonRoot.neededCapabilitieslist["NET_BIND_SERVICE"]capabilties for the application
options.runAsNonRoot.runAsUserint1000user id for non root mode
options.setAffinityboolfalseconfigure affinity to enable pods to be spread out over multiple hosts
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
serviceobjectSee values.yamlConfigures service settings for the chart.
volumeClaimTemplates.config.accessModestring"ReadWriteOnce"Set accessMode for config volumeClaimTemplate
volumeClaimTemplates.config.enabledboolfalseEnable config volumeClaimTemplate
volumeClaimTemplates.config.sizestring"10Mi"Set size for config volumeClaimTemplate
volumeClaimTemplates.config.storageClassstring"nfs-client"Set storageClass for config volumeClaimTemplate
volumeClaimTemplates.data.accessModestring"ReadWriteOnce"Set accessMode for data volumeClaimTemplate
volumeClaimTemplates.data.enabledboolfalseEnable data volumeClaimTemplate
volumeClaimTemplates.data.globalMountslist[{"path":"/opt/adguardhome/work"}]Set mount path for data volumeClaim
volumeClaimTemplates.data.sizestring"10Mi"Set size for data volumeClaimTemplate
volumeClaimTemplates.data.storageClassstring"nfs-client"Set storageClass for data volumeClaimTemplate

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy adguard-home with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has adguard-home on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartadguard-home is pinned at v2.0.15 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply