blocky

by k8s-home-lab

Helm chartv11.4.0App v0.36.0

DNS proxy as ad-blocker for local network

About this chart

blocky

DNS proxy as ad-blocker for local network

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Source Code

Requirements

Kubernetes: >=1.19.0-0

Dependencies

RepositoryNameVersion
https://k8s-home-lab.github.io/helm-charts/common4.5.5
oci://ghcr.io/cloudpirates-io/helm-chartsredis0.40.0

TL;DR

helm repo add k8s-home-lab https://k8s-home-lab.github.io/helm-charts/
helm repo update
helm install blocky k8s-home-lab/blocky

Installing the Chart

To install the chart with the release name blocky

helm install blocky k8s-home-lab/blocky

Uninstalling the Chart

To uninstall the blocky deployment

helm uninstall blocky

The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.

Configuration

Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

helm install blocky \
  --set env.TZ="America/New York" \
    k8s-home-lab/blocky

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.

helm install blocky k8s-home-lab/blocky -f values.yaml

Custom configuration

[10.3.0]

Added

  • Add dependency for redis database as the application now supports it. Redis - Blocky
  • The redis dependency increases the minimum latest version of k8s to version 1.19+

Values

Important: When deploying an application Helm chart you can add more values from our common library chart here

KeyTypeDefaultDescription
configstringsee URL to default configFull list of options https://github.com/0xERR0R/blocky/blob/v0.18/docs/config.yml
controller.replicasint1Number of pods to load balance between
controller.strategystring"RollingUpdate"Set the controller upgrade strategy
envobjectSee belowenvironment variables. See image docs for more details.
env.TZstring"UTC"Set the container timezone
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"ghcr.io/0xerr0r/blocky"image repository
image.tagstringchart.appVersionimage tag
ingressobjectSee values.yamlEnable and configure ingress settings for the chart under this key.
metrics.enabledboolSee values.yamlEnable and configure a Prometheus serviceMonitor for the chart under this key.
metrics.prometheusRuleobjectSee values.yamlEnable and configure Prometheus Rules for the chart under this key.
metrics.prometheusRule.ruleslistSee prometheusrules.yamlConfigure additionial rules for the chart under this key.
metrics.serviceMonitor.intervalstring"30s"Interval at which Prometheus should scrape metrics
metrics.serviceMonitor.jobLabelstring""The Kubernetes Endpoints label to use as the Prometheus job name
metrics.serviceMonitor.labelsobject{}Additional labels for the Kubernetes ServiceMonitor object
metrics.serviceMonitor.podTargetLabelslist[]PodTargetLabels transfers labels on the Kubernetes `Pod`` onto the created metrics.
metrics.serviceMonitor.scrapeTimeoutstring"10s"Timeout after which the scrape is ended
metrics.serviceMonitor.targetLabelslist[]TargetLabels transfers labels from the Kubernetes `Service`` onto the created metrics.
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
redisobjectSee values.yamlEnable and configure redis subchart under this key. For more options see redis chart documentation
serviceobjectSee values.yamlConfigures service settings for the chart.

Changelog

Version 11.4.0

Deploy blocky with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has blocky 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 chartblocky is pinned at v11.4.0 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