mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 15:59:09 +00:00
[blocky] Refactor config yaml (#169)
* Refactor config yaml Also disable logs volume (no longer needed) Signed-off-by: Jeff Billimek <jeff@billimek.com> * fix linting Signed-off-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
parent
def0e8c7ed
commit
92a0db15d1
@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
appVersion: "v0.5"
|
appVersion: "v0.5"
|
||||||
description: DNS proxy as ad-blocker for local network
|
description: DNS proxy as ad-blocker for local network
|
||||||
name: blocky
|
name: blocky
|
||||||
version: 2.1.0
|
version: 2.2.0
|
||||||
keywords:
|
keywords:
|
||||||
- blocky
|
- blocky
|
||||||
- dbs
|
- dbs
|
||||||
|
@ -9,5 +9,8 @@ metadata:
|
|||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
data:
|
data:
|
||||||
|
{{- if .Values.config }}
|
||||||
|
{{ $root := . }}
|
||||||
config.yml: |
|
config.yml: |
|
||||||
{{ .Values.config | indent 4 }}
|
{{ tpl (toYaml .Values.config | indent 4) $root }}
|
||||||
|
{{- end }}
|
||||||
|
@ -37,8 +37,6 @@ spec:
|
|||||||
- name: config
|
- name: config
|
||||||
mountPath: /app/config.yml
|
mountPath: /app/config.yml
|
||||||
subPath: config.yml
|
subPath: config.yml
|
||||||
- name: logs
|
|
||||||
mountPath: /logs
|
|
||||||
ports:
|
ports:
|
||||||
ports:
|
ports:
|
||||||
- name: monitoring
|
- name: monitoring
|
||||||
@ -74,9 +72,6 @@ spec:
|
|||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ template "blocky.fullname" . }}
|
name: {{ template "blocky.fullname" . }}
|
||||||
- name: logs
|
|
||||||
emptyDir:
|
|
||||||
medium: Memory
|
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
@ -12,8 +12,8 @@ replicas: 1
|
|||||||
|
|
||||||
timeZone: "UTC"
|
timeZone: "UTC"
|
||||||
|
|
||||||
# blocky configuration
|
# blocky configuration - will translate to config.yml file inside the pod
|
||||||
config: |
|
config:
|
||||||
upstream:
|
upstream:
|
||||||
# these external DNS resolvers will be used. Blocky picks 2 random resolvers from the list for each query
|
# these external DNS resolvers will be used. Blocky picks 2 random resolvers from the list for each query
|
||||||
# format for resolver: net:host:[port][/path]. net could be tcp, udp, tcp-tls or https (DoH). If port is empty, default port will be used (53 for udp and tcp, 853 for tcp-tls, 443 for https (Doh))
|
# format for resolver: net:host:[port][/path]. net could be tcp, udp, tcp-tls or https (DoH). If port is empty, default port will be used (53 for udp and tcp, 853 for tcp-tls, 443 for https (Doh))
|
||||||
@ -69,20 +69,20 @@ config: |
|
|||||||
# optional: automatically list refresh period in minutes. Default: 4h.
|
# optional: automatically list refresh period in minutes. Default: 4h.
|
||||||
# Negative value -> deactivate automatically refresh.
|
# Negative value -> deactivate automatically refresh.
|
||||||
# 0 value -> use default
|
# 0 value -> use default
|
||||||
refreshPeriod: 1
|
# refreshPeriod: 1
|
||||||
|
|
||||||
# optional: configuration for caching of DNS responses
|
# optional: configuration for caching of DNS responses
|
||||||
caching:
|
# caching:
|
||||||
# amount in minutes, how long a response must be cached (min value).
|
# amount in minutes, how long a response must be cached (min value).
|
||||||
# If <=0, use response's TTL, if >0 use this value, if TTL is smaller
|
# If <=0, use response's TTL, if >0 use this value, if TTL is smaller
|
||||||
# Default: 0
|
# Default: 0
|
||||||
minTime: 40
|
# minTime: 40
|
||||||
# amount in minutes, how long a response must be cached (max value).
|
# amount in minutes, how long a response must be cached (max value).
|
||||||
# If <0, do not cache responses
|
# If <0, do not cache responses
|
||||||
# If 0, use TTL
|
# If 0, use TTL
|
||||||
# If > 0, use this value, if TTL is greater
|
# If > 0, use this value, if TTL is greater
|
||||||
# Default: 0
|
# Default: 0
|
||||||
maxTime: -1
|
# maxTime: -1
|
||||||
|
|
||||||
# optional: configuration of client name resolution
|
# optional: configuration of client name resolution
|
||||||
clientLookup:
|
clientLookup:
|
||||||
@ -90,9 +90,9 @@ config: |
|
|||||||
upstream: udp:192.168.178.1
|
upstream: udp:192.168.178.1
|
||||||
# optional: some routers return multiple names for client (host name and user defined name). Define which single name should be used.
|
# optional: some routers return multiple names for client (host name and user defined name). Define which single name should be used.
|
||||||
# Example: take second name if present, if not take first name
|
# Example: take second name if present, if not take first name
|
||||||
singleNameOrder:
|
# singleNameOrder:
|
||||||
- 2
|
# - 2
|
||||||
- 1
|
# - 1
|
||||||
# optional: configuration for prometheus metrics endpoint
|
# optional: configuration for prometheus metrics endpoint
|
||||||
prometheus:
|
prometheus:
|
||||||
# enabled if true
|
# enabled if true
|
||||||
@ -102,15 +102,6 @@ config: |
|
|||||||
# url path, optional (default '/metrics')
|
# url path, optional (default '/metrics')
|
||||||
path: /metrics
|
path: /metrics
|
||||||
|
|
||||||
# optional: write query information (question, answer, client, duration etc) to daily csv file
|
|
||||||
queryLog:
|
|
||||||
# directory (should be mounted as volume in docker)
|
|
||||||
dir: /logs
|
|
||||||
# if true, write one file per client. Writes all queries to single file otherwise
|
|
||||||
perClient: true
|
|
||||||
# if > 0, deletes log files which are older than ... days
|
|
||||||
logRetentionDays: 7
|
|
||||||
|
|
||||||
# optional: DNS listener port, default 53 (UDP and TCP)
|
# optional: DNS listener port, default 53 (UDP and TCP)
|
||||||
port: 53
|
port: 53
|
||||||
# optional: HTTP listener port, default 0 = no http listener. If > 0, will be used for prometheus metrics, pprof, ...
|
# optional: HTTP listener port, default 0 = no http listener. If > 0, will be used for prometheus metrics, pprof, ...
|
||||||
@ -167,11 +158,10 @@ resources: {}
|
|||||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
||||||
# limits:
|
# limits:
|
||||||
# cpu: 100m
|
# memory: 500Mi
|
||||||
# memory: 128Mi
|
|
||||||
# requests:
|
# requests:
|
||||||
# cpu: 100m
|
# cpu: 50m
|
||||||
# memory: 128Mi
|
# memory: 275Mi
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user