2022-09-22 18:05:40 -04:00
|
|
|
image:
|
2023-11-17 05:20:22 -05:00
|
|
|
repository: spx01/blocky
|
2024-01-08 01:39:29 -05:00
|
|
|
tag: v0.23@sha256:24855b63986c790093554a1f62b58379a06bc10a90ee073906e7c39bf692adcc
|
2022-09-22 18:05:40 -04:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
k8sgatewayImage:
|
2023-11-18 05:48:35 -05:00
|
|
|
repository: quay.io/oriedge/k8s_gateway
|
2022-09-22 18:05:40 -04:00
|
|
|
pullPolicy: IfNotPresent
|
2023-12-17 09:36:24 -05:00
|
|
|
tag: v0.4.0@sha256:7bdbd447c0244b8f89de9cd6f4826ed0ac66c9406fac3a4ac80081020c251c6b
|
2023-05-24 02:50:57 -04:00
|
|
|
manifestManager:
|
|
|
|
enabled: true
|
2023-03-04 07:42:14 -05:00
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
replicas: 2
|
|
|
|
strategy: RollingUpdate
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: false
|
|
|
|
type: exec
|
|
|
|
command:
|
|
|
|
- /app/blocky
|
|
|
|
- healthcheck
|
|
|
|
readiness:
|
|
|
|
enabled: false
|
|
|
|
type: exec
|
|
|
|
command:
|
|
|
|
- /app/blocky
|
|
|
|
- healthcheck
|
|
|
|
startup:
|
|
|
|
enabled: false
|
|
|
|
type: exec
|
|
|
|
command:
|
|
|
|
- /app/blocky
|
|
|
|
- healthcheck
|
2022-09-22 18:05:40 -04:00
|
|
|
# -- Blocky Config File content
|
|
|
|
blockyConfig: {}
|
|
|
|
# upstream:
|
|
|
|
# default:
|
|
|
|
# - 1.1.1.1
|
|
|
|
|
2022-09-26 06:07:54 -04:00
|
|
|
# -- some general blocky settings
|
2022-09-22 18:05:40 -04:00
|
|
|
blocky:
|
2022-09-26 06:07:54 -04:00
|
|
|
# -- Enable prometheus annotations
|
2022-09-22 18:05:40 -04:00
|
|
|
enablePrometheus: true
|
|
|
|
service:
|
|
|
|
main:
|
2023-03-04 07:42:14 -05:00
|
|
|
enabled: true
|
2022-09-22 18:05:40 -04:00
|
|
|
ports:
|
|
|
|
main:
|
2023-03-04 07:42:14 -05:00
|
|
|
enabled: true
|
|
|
|
port: 4000
|
|
|
|
protocol: http
|
|
|
|
targetPort: 4000
|
2022-09-25 13:42:59 -04:00
|
|
|
dnstcp:
|
2022-09-22 18:05:40 -04:00
|
|
|
enabled: true
|
|
|
|
ports:
|
2022-09-25 13:42:59 -04:00
|
|
|
dnstcp:
|
2022-09-22 18:05:40 -04:00
|
|
|
enabled: true
|
|
|
|
port: 53
|
|
|
|
targetPort: 53
|
2022-09-25 13:42:59 -04:00
|
|
|
dnsudp:
|
2022-09-22 18:05:40 -04:00
|
|
|
enabled: true
|
|
|
|
ports:
|
2022-09-25 13:42:59 -04:00
|
|
|
dnsudp:
|
2022-09-22 18:05:40 -04:00
|
|
|
enabled: true
|
|
|
|
port: 53
|
2023-03-04 07:42:14 -05:00
|
|
|
protocol: udp
|
2022-09-22 18:05:40 -04:00
|
|
|
targetPort: 53
|
|
|
|
dot:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
dot:
|
|
|
|
enabled: true
|
|
|
|
port: 853
|
2023-03-04 07:42:14 -05:00
|
|
|
protocol: tcp
|
2022-09-22 18:05:40 -04:00
|
|
|
targetPort: 853
|
|
|
|
https:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
https:
|
|
|
|
enabled: true
|
|
|
|
port: 4443
|
2023-03-04 07:42:14 -05:00
|
|
|
protocol: https
|
2022-09-22 18:05:40 -04:00
|
|
|
targetPort: 4443
|
|
|
|
k8sgateway:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
k8sgateway:
|
|
|
|
enabled: true
|
|
|
|
port: 5353
|
2023-03-04 07:42:14 -05:00
|
|
|
protocol: udp
|
2022-09-22 18:05:40 -04:00
|
|
|
targetPort: 5353
|
|
|
|
## TODO Add support for SCALE certificates and certificates secrets here
|
|
|
|
certFile: ""
|
|
|
|
keyFile: ""
|
|
|
|
logLevel: info
|
|
|
|
logFormat: text
|
|
|
|
logTimestamp: true
|
|
|
|
logPrivacy: false
|
|
|
|
dohUserAgent: ""
|
|
|
|
minTlsServeVersion: 1.2
|
|
|
|
# -- set the default DNS upstream servers
|
|
|
|
# Primarily designed for inclusion in the TrueNAS SCALE GUI
|
|
|
|
defaultUpstreams:
|
|
|
|
- 1.1.1.1
|
|
|
|
- 1.0.0.1
|
|
|
|
- 8.8.8.8
|
|
|
|
- 8.8.4.4
|
|
|
|
- 9.9.9.9
|
|
|
|
- 149.112.112.112
|
|
|
|
- 208.67.222.222
|
|
|
|
- 208.67.220.220
|
|
|
|
- 8.26.56.26
|
|
|
|
- 8.20.247.20
|
|
|
|
- 185.228.168.9
|
|
|
|
- 185.228.169.9
|
|
|
|
- 76.76.19.19
|
|
|
|
- 76.223.122.150
|
|
|
|
- 76.76.2.0
|
|
|
|
- 76.76.10.0
|
|
|
|
# -- set additional upstreams
|
|
|
|
# Primarily designed for inclusion in the TrueNAS SCALE GUI
|
|
|
|
upstreams:
|
2023-11-17 05:20:22 -05:00
|
|
|
# - name: group2
|
|
|
|
# dnsservers:
|
|
|
|
# - 1.1.1.1
|
2022-09-22 18:05:40 -04:00
|
|
|
|
|
|
|
# -- set bootstrap dns (not needed)
|
|
|
|
# Ensures bootstrap encryption and ensure it doesn't use k8s dns
|
|
|
|
bootstrapDns:
|
|
|
|
# -- Upstream
|
|
|
|
upstream: ""
|
|
|
|
# -- IP's linked to upstream DoT/DoH DNS name
|
|
|
|
ips: []
|
2023-03-22 02:48:58 -04:00
|
|
|
# -- set additional bootstrap dns (not needed, only used if bootstrapDns is set)
|
2023-11-17 05:20:22 -05:00
|
|
|
additionalBootstrapDns: []
|
|
|
|
# - upstream: ""
|
|
|
|
# ips: []
|
2023-03-22 02:48:58 -04:00
|
|
|
|
2022-09-22 18:05:40 -04:00
|
|
|
# -- Return empty answer for these queries
|
|
|
|
filtering:
|
|
|
|
# -- Ensures filtering by query type
|
|
|
|
queryTypes: []
|
|
|
|
# -- Set manual custom DNS resolution
|
|
|
|
customDNS:
|
|
|
|
customTTL: 1h
|
|
|
|
filterUnmappedTypes: true
|
|
|
|
rewrite: []
|
|
|
|
# - in: something.com
|
|
|
|
# out: somethingelse.com
|
|
|
|
mapping: []
|
|
|
|
# - domain: something.com
|
|
|
|
# dnsserver: 192.168.178.1
|
|
|
|
# -- Setup client-name lookup
|
|
|
|
clientLookup:
|
|
|
|
# -- upstream used for client-name lookup
|
|
|
|
upstream: ""
|
|
|
|
singleNameOrder: []
|
|
|
|
clients:
|
|
|
|
# - domain: laptop
|
|
|
|
# ips: []
|
|
|
|
# -- Setup caching
|
|
|
|
caching:
|
|
|
|
minTime: 5m
|
|
|
|
maxTime: 30m
|
|
|
|
maxItemsCount: 0
|
|
|
|
prefetching: false
|
|
|
|
prefetchExpires: 2h
|
|
|
|
prefetchThreshold: 5
|
|
|
|
prefetchMaxItemsCount: 0
|
|
|
|
cacheTimeNegative: 30m
|
|
|
|
# -- set conditional settings
|
|
|
|
# Primarily designed for inclusion in the TrueNAS SCALE GUI
|
|
|
|
conditional:
|
|
|
|
rewrite: []
|
|
|
|
# - in: something.com
|
|
|
|
# out: somethingelse.com
|
|
|
|
mapping: []
|
|
|
|
# - domain: something.com
|
|
|
|
# dnsserver: 192.168.178.1
|
|
|
|
# -- set blocking settings using Lists
|
|
|
|
# Primarily designed for inclusion in the TrueNAS SCALE GUI
|
|
|
|
blocking:
|
|
|
|
# -- Sets the blocktype
|
|
|
|
blockType: nxDomain
|
|
|
|
# -- Sets the block ttl
|
|
|
|
blockTTL: 6h
|
|
|
|
# -- Sets the block refreshPeriod
|
|
|
|
refreshPeriod: 4h
|
|
|
|
# -- Sets the block download timeout
|
|
|
|
downloadTimeout: 60s
|
|
|
|
# -- Sets the block download attempt count
|
|
|
|
downloadAttempts: 3
|
|
|
|
# -- Sets the block download cooldown
|
|
|
|
downloadCooldown: 2s
|
2023-04-15 08:12:31 -04:00
|
|
|
# -- Set the start strategy (blocking | failOnError | fast)
|
|
|
|
startStrategy: blocking
|
2022-09-22 18:05:40 -04:00
|
|
|
# -- Sets how many list-groups can be processed at the same time
|
|
|
|
processingConcurrency: 4
|
|
|
|
# -- Add blocky whitelists
|
|
|
|
whitelist: []
|
|
|
|
# - name: ads
|
|
|
|
# lists:
|
|
|
|
# - https://someurl.com/list.txt
|
|
|
|
# - /somefile.txt
|
|
|
|
|
|
|
|
# -- Blocky blacklists
|
|
|
|
blacklist: []
|
|
|
|
# - name: ads
|
|
|
|
# lists:
|
|
|
|
# - https://someurl.com/list.txt
|
|
|
|
# - /somefile.txt
|
|
|
|
|
|
|
|
# -- Blocky clientGroupsBlock
|
|
|
|
clientGroupsBlock: []
|
|
|
|
# - name: default
|
|
|
|
# groups:
|
|
|
|
# - ads
|
|
|
|
# -- configure using hostsfile for lookups
|
|
|
|
# Allows for using the hosts configured in kubernetes and such
|
|
|
|
hostsFile:
|
|
|
|
enabled: false
|
|
|
|
filePath: /etc/hosts
|
|
|
|
hostsTTL: 60m
|
|
|
|
refreshPeriod: 30m
|
|
|
|
## TODO: add this with postgresql support as well
|
|
|
|
# queryLog:
|
|
|
|
# type: csv
|
|
|
|
# target: /logs
|
|
|
|
# logRetentionDays: 0
|
|
|
|
# creationAttempts: 3
|
|
|
|
# CreationCooldown: 2
|
2023-03-04 07:42:14 -05:00
|
|
|
podOptions:
|
|
|
|
automountServiceAccountToken: true
|
2022-09-22 18:05:40 -04:00
|
|
|
portal:
|
2023-03-04 07:42:14 -05:00
|
|
|
open:
|
|
|
|
enabled: false
|
2022-09-22 18:05:40 -04:00
|
|
|
serviceAccount:
|
|
|
|
main:
|
|
|
|
# -- Specifies whether a service account should be created
|
|
|
|
enabled: true
|
2023-03-04 07:42:14 -05:00
|
|
|
primary: true
|
2022-09-22 18:05:40 -04:00
|
|
|
# -- Create a ClusterRole and ClusterRoleBinding
|
|
|
|
# @default -- See below
|
|
|
|
rbac:
|
|
|
|
main:
|
|
|
|
# -- Enables or disables the ClusterRole and ClusterRoleBinding
|
|
|
|
enabled: true
|
2023-03-04 07:42:14 -05:00
|
|
|
primary: true
|
|
|
|
clusterWide: true
|
2022-09-22 18:05:40 -04:00
|
|
|
# -- Set Rules on the ClusterRole
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- services
|
|
|
|
- namespaces
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- extensions
|
|
|
|
- networking.k8s.io
|
|
|
|
resources:
|
|
|
|
- ingresses
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
k8sgateway:
|
|
|
|
enabled: true
|
|
|
|
# -- TTL for non-apex responses (in seconds)
|
|
|
|
ttl: 300
|
|
|
|
# -- Limit what kind of resources to watch, e.g. watchedResources: ["Ingress"]
|
|
|
|
watchedResources: []
|
|
|
|
# -- Service name of a secondary DNS server (should be `serviceName.namespace`)
|
|
|
|
secondary: ""
|
|
|
|
# -- Override the default `serviceName.namespace` domain apex
|
|
|
|
apex: ""
|
|
|
|
# -- list of processed domains
|
|
|
|
domains: []
|
|
|
|
# -- Delegated domain
|
|
|
|
# - domain: "example.com"
|
|
|
|
# # -- Optional configuration option for DNS01 challenge that will redirect all acme
|
|
|
|
# # challenge requests to external cloud domain (e.g. managed by cert-manager)
|
|
|
|
# # See: https://cert-manager.io/docs/configuration/acme/dns01/
|
|
|
|
# dnsChallenge:
|
|
|
|
# enabled: false
|
|
|
|
# domain: dns01.clouddns.com
|
|
|
|
|
|
|
|
forward:
|
|
|
|
enabled: false
|
|
|
|
primary: tls://1.1.1.1
|
|
|
|
secondary: tls://1.0.0.1
|
|
|
|
options:
|
|
|
|
- name: tls_servername
|
|
|
|
value: cloudflare-dns.com
|
2024-02-27 14:01:56 -05:00
|
|
|
|
2024-02-27 12:17:01 -05:00
|
|
|
configmap:
|
|
|
|
dashboard:
|
|
|
|
enabled: true
|
|
|
|
labels:
|
2024-02-27 14:01:56 -05:00
|
|
|
grafana_dashboard: "1"
|
2024-02-27 12:17:01 -05:00
|
|
|
data:
|
|
|
|
blocky.json: >-
|
|
|
|
{{ .Files.Get "dashboard.json" | indent 8 }}
|
2024-02-27 20:30:32 -05:00
|
|
|
blockypostgres.json: >-
|
|
|
|
{{ .Files.Get "dashboardpsql.json" | indent 8 }}
|
|
|
|
datasourceblockypsql.yaml: |-
|
|
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
|
|
- name: BlockyPostgresql
|
|
|
|
type: postgresql
|
|
|
|
uid: blockypostgresql
|
|
|
|
url: {{ .Values.cnpg.main.creds.portHost | default "na" }}
|
|
|
|
access: proxy
|
|
|
|
user: {{ .Values.cnpg.main.user }}
|
|
|
|
secureJsonData:
|
|
|
|
password: {{ .Values.cnpg.main.creds.password | default "na" }}
|
|
|
|
jsonData:
|
|
|
|
database: {{ .Values.cnpg.main.database }}
|
|
|
|
sslmode: 'disable' # disable/require/verify-ca/verify-full
|
|
|
|
maxOpenConns: 100 # Grafana v5.4+
|
|
|
|
maxIdleConns: 100 # Grafana v5.4+
|
|
|
|
maxIdleConnsAuto: true # Grafana v9.5.1+
|
|
|
|
connMaxLifetime: 14400 # Grafana v5.4+
|
|
|
|
postgresVersion: 1000 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10
|
|
|
|
timescaledb: false
|
2024-02-27 14:01:56 -05:00
|
|
|
|
2022-09-26 07:35:03 -04:00
|
|
|
metrics:
|
2023-03-04 07:42:14 -05:00
|
|
|
main:
|
|
|
|
# -- Enable and configure a Prometheus serviceMonitor for the chart under this key.
|
|
|
|
# @default -- See values.yaml
|
2024-02-27 12:17:01 -05:00
|
|
|
enabled: true
|
2023-03-07 10:58:34 -05:00
|
|
|
type: "servicemonitor"
|
2023-03-04 07:42:14 -05:00
|
|
|
endpoints:
|
|
|
|
- port: main
|
|
|
|
path: /metrics
|
|
|
|
# -- Enable and configure Prometheus Rules for the chart under this key.
|
|
|
|
# @default -- See values.yaml
|
|
|
|
prometheusRule:
|
|
|
|
enabled: false
|
|
|
|
labels: {}
|
|
|
|
# -- Configure additionial rules for the chart under this key.
|
|
|
|
# @default -- See prometheusrules.yaml
|
2023-11-17 05:20:22 -05:00
|
|
|
rules: []
|
|
|
|
# - alert: UnifiPollerAbsent
|
|
|
|
# annotations:
|
|
|
|
# description: Unifi Poller has disappeared from Prometheus service discovery.
|
|
|
|
# summary: Unifi Poller is down.
|
|
|
|
# expr: |
|
|
|
|
# absent(up{job=~".*unifi-poller.*"} == 1)
|
|
|
|
# for: 5m
|
|
|
|
# labels:
|
|
|
|
# severity: critical
|
2024-02-27 12:17:01 -05:00
|
|
|
|
2022-09-22 18:05:40 -04:00
|
|
|
redis:
|
|
|
|
enabled: true
|
2023-03-04 07:42:14 -05:00
|
|
|
# CANNOT be defined in above yaml section
|
|
|
|
queryLog:
|
|
|
|
# optional one of: mysql, postgresql, csv, csv-client. If empty, log to console
|
|
|
|
type: ""
|
2023-03-07 06:46:48 -05:00
|
|
|
# directory (should be mounted as volume in docker) for csv, db connection string for mysql, ignored for included postgresql
|
2023-03-04 07:42:14 -05:00
|
|
|
# target: /var/log/something
|
|
|
|
# postgresql target: postgres://user:password@db_host_or_ip:5432/db_name
|
|
|
|
# if > 0, deletes log files which are older than ... days
|
|
|
|
logRetentionDays: 0
|
|
|
|
# optional: Max attempts to create specific query log writer, default: 3
|
|
|
|
creationAttempts: 3
|
|
|
|
# optional: Time between the creation attempts, default: 2s
|
|
|
|
creationCooldown: 2s
|
|
|
|
cnpg:
|
|
|
|
main:
|
2024-02-27 20:30:32 -05:00
|
|
|
enabled: true
|
2023-03-04 07:42:14 -05:00
|
|
|
user: blocky
|
|
|
|
database: blocky
|