dnscrypt-proxy

by obeone

Helm chartv1.4.7App 2.1.21Verified publisher

A flexible DNS proxy, with support for encrypted DNS protocols.

About this chart

dnscrypt-proxy

A flexible DNS proxy, with support for encrypted DNS protocols.

TL;DR

helm repo add obeone https://charts.obeone.cloud
helm repo update
helm install dnscrypt-proxy obeone/dnscrypt-proxy

About

dnscrypt-proxy is a flexible DNS proxy with support for modern encrypted DNS protocols: DNSCrypt v2, DNS-over-HTTPS, Anonymized DNSCrypt and ODoH. It can filter, cache and load-balance queries across multiple upstream resolvers, which makes it a solid building block for private DNS inside a cluster or a home network.

Prerequisites

  • Helm 3
  • A Kubernetes cluster matching the chart's kubeVersion constraint (see Chart.yaml)

Configuration

This chart is built on the k8s-at-home common library (v4). Most configuration keys (image, env, service, ingress, persistence, ...) follow its schema, so the library supports more than what is spelled out in values.yaml.

Defaults are meant to work out of the box on any cluster. The full list of options lives in values.yaml, is validated by values.schema.json at install time, and is documented in the Values section below. Override it with your own values file:

helm install dnscrypt-proxy obeone/dnscrypt-proxy -f my-values.yaml

Custom configuration

The upstream configuration file can be shipped through the bundled ConfigMap:

configmap:
  config:
    enabled: true
    data:
      dnscrypt-proxy.toml: |
        listen_addresses = ['0.0.0.0:5053']
        server_names = ['cloudflare']

See the example configuration for every available setting.

Upgrading

helm repo update
helm upgrade dnscrypt-proxy obeone/dnscrypt-proxy

Each release lists its changes in the Artifact Hub changelog; give it a look before jumping across several chart versions.

Uninstalling

helm uninstall dnscrypt-proxy

PersistentVolumeClaims created by the chart are kept around: delete them manually if you also want the data gone.

Requirements

Kubernetes: >=1.16.0-0

RepositoryNameVersion
https://library-charts.k8s-at-home.comcommon4.5.2

Values

KeyTypeDefaultDescription
configmapobjectSee belowConfigure configMaps for the chart here. Additional configMaps can be added by adding a dictionary key similar to the 'config' object.
configmap.config.annotationsobject{}Annotations to add to the configMap
configmap.config.dataobject{"dnscrypt-proxy.toml":"listen_addresses = ['0.0.0.0:5353']\nlog_level = 1\n\nipv4_servers = true\nipv6_servers = false\ndnscrypt_servers = true\ndoh_servers = false\nodoh_servers = false\nbootstrap_resolvers = ['9.9.9.11:53', '8.8.8.8:53']\nlb_strategy = 'p2'\n\nrequire_nolog = true\nrequire_nofilter = true\n\n[sources]\n [sources.public-resolvers]\n urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md', 'https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md', 'https://ipv6.download.dnscrypt.info/resolvers-list/v3/public-resolvers.md']\n cache_file = 'public-resolvers.md'\n minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'\n refresh_delay = 72\n prefix = ''\n"}configMap data content. Helm template enabled.
configmap.config.data."dnscrypt-proxy.toml"string"listen_addresses = ['0.0.0.0:5353']\nlog_level = 1\n\nipv4_servers = true\nipv6_servers = false\ndnscrypt_servers = true\ndoh_servers = false\nodoh_servers = false\nbootstrap_resolvers = ['9.9.9.11:53', '8.8.8.8:53']\nlb_strategy = 'p2'\n\nrequire_nolog = true\nrequire_nofilter = true\n\n[sources]\n [sources.public-resolvers]\n urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md', 'https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md', 'https://ipv6.download.dnscrypt.info/resolvers-list/v3/public-resolvers.md']\n cache_file = 'public-resolvers.md'\n minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'\n refresh_delay = 72\n prefix = ''\n"Configuration This is a simple configuration. You can find a sample config here : https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml And the manual : https://github.com/DNSCrypt/dnscrypt-proxy/wiki
configmap.config.enabledboolfalseEnables or disables the configMap
configmap.config.labelsobject{}Labels to add to the configMap
controller.replicasint1
envobjectSee belowenvironment variables. See more environment variables in the dnscrypt-proxy documentation.
env.TZstring"UTC"Set the container timezone
image.pullPolicystring"IfNotPresent"image pull policy. Set to Slways if you used "main" as tag
image.repositorystring"klutchell/dnscrypt-proxy"image repository
image.tagstringchart.appVersionimage tag. Use "main" if you want to be able to use DNS probes
ingress.mainobjectSee values.yamlEnable and configure ingress settings for the chart under this key.
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
probes.liveness.custombooltrue
probes.liveness.spec.exec.command[0]string"/usr/local/bin/dnsprobe"
probes.liveness.spec.exec.command[1]string"google.com"
probes.liveness.spec.exec.command[2]string"127.0.0.1:5353"
probes.liveness.spec.failureThresholdint3
probes.liveness.spec.initialDelaySecondsint30
probes.liveness.spec.periodSecondsint5
probes.liveness.spec.timeoutSecondsint3
probes.readiness.custombooltrue
probes.readiness.spec.exec.command[0]string"/usr/local/bin/dnsprobe"
probes.readiness.spec.exec.command[1]string"google.com"
probes.readiness.spec.exec.command[2]string"127.0.0.1:5353"
probes.readiness.spec.failureThresholdint1
probes.readiness.spec.periodSecondsint5
probes.readiness.spec.timeoutSecondsint1
probes.startup.custombooltrue
probes.startup.spec.exec.command[0]string"/usr/local/bin/dnsprobe"
probes.startup.spec.exec.command[1]string"google.com"
probes.startup.spec.exec.command[2]string"127.0.0.1:5353"
probes.startup.spec.failureThresholdint10
probes.startup.spec.initialDelaySecondsint10
probes.startup.spec.periodSecondsint5
probes.startup.spec.timeoutSecondsint3
serviceobjectSee values.yamlConfigures service settings for the chart.

Verifying the chart signature

Charts in this repository are signed with GPG and every release ships a provenance file. The public key is available at charts.obeone.cloud/public_key.gpg, fingerprint B9FE852F28888D27F8C9A11CD33E04CD22E335CE.

# Import the signing key into a legacy keyring (helm verifies with GnuPG v1 keyrings)
curl -fsSL https://charts.obeone.cloud/public_key.gpg | gpg --import
gpg --export > ~/.gnupg/pubring.gpg

# Pull the chart and check it against its provenance file
helm pull --verify obeone/dnscrypt-proxy

Support

This is a personal chart repository, maintained on a best-effort basis. Bug reports and contributions are welcome on GitHub.


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy dnscrypt-proxy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dnscrypt-proxy 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 chartdnscrypt-proxy is pinned at v1.4.7 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