fix configmapref and default to quad9 for pihole.

Also move it to stable
This commit is contained in:
kjeld Schouten-Lebbing
2021-09-04 18:28:49 +02:00
parent b11892dbec
commit b91fb1d259
12 changed files with 6 additions and 6 deletions
+24
View File
@@ -0,0 +1,24 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
View File
+24
View File
@@ -0,0 +1,24 @@
apiVersion: v2
appVersion: auto
dependencies:
- name: common
repository: https://truecharts.org/
version: 6.13.7
deprecated: false
description: DNS and Ad-filtering for your network
home: https://github.com/truecharts/apps/tree/master/charts/stable/pihole
icon: https://upload.wikimedia.org/wikipedia/en/thumb/1/15/Pi-hole_vector_logo.svg/1200px-Pi-hole_vector_logo.svg.png
keywords:
- DNS
kubeVersion: '>=1.16.0-0'
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: truecharts.org
name: pihole
sources:
- https://pi-hole.net/
- https://github.com/pi-hole
- https://github.com/pi-hole/docker-pi-hole
type: application
version: 1.0.0
View File
+3
View File
@@ -0,0 +1,3 @@
categories:
- networking
icon_url: https://upload.wikimedia.org/wikipedia/en/thumb/1/15/Pi-hole_vector_logo.svg/1200px-Pi-hole_vector_logo.svg.png
+19
View File
@@ -0,0 +1,19 @@
##
# This file contains Values.yaml content that gets added to the output of questions.yaml
# It's ONLY meant for content that the user is NOT expected to change.
# Example: Everything under "image" is not included in questions.yaml but is included here.
##
image:
repository: pihole/pihole
pullPolicy: IfNotPresent
tag: v5.8.1
envFrom:
- configMapRef:
name: pihole-env
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart
##
File diff suppressed because it is too large Load Diff
View File
View File
@@ -0,0 +1,13 @@
{{/* Define the configmap */}}
{{- define "pihole.configmap" -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: pihole-env
data:
WEBPASSWORD: {{ .Values.pihole.WEBPASSWORD | squote }}
{{- if .Values.pihole.DNS1 }}
"PIHOLE_DNS_": {{ if .Values.pihole.DNS2 }}{{ ( printf "%v;%v" .Values.pihole.DNS1 .Values.pihole.DNS2 ) | squote }}{{ else }}{{ .Values.pihole.DNS1 | squote }}{{ end }}
{{- end }}
{{- end -}}
@@ -0,0 +1,8 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* Render configmap for pihole */}}
{{- include "pihole.configmap" . }}
{{/* Render the templates */}}
{{ include "common.all" . }}
+43
View File
@@ -0,0 +1,43 @@
# Default values for Jackett.
image:
repository: pihole/pihole
pullPolicy: IfNotPresent
tag: v5.8.1
envFrom:
- configMapRef:
name: pihole-env
service:
main:
enabled: true
ports:
main:
port: 80
dns-tcp:
enabled: true
ports:
https:
enabled: true
port: 53
dns:
enabled: true
ports:
dns:
enabled: true
port: 53
pihole:
WEBPASSWORD: "somepassword"
DNS1: "9.9.9.9"
DNS2: "149.112.112.112"
persistence:
config:
enabled: true
mountPath: "/etc/pihole"
type: pvc
accessMode: ReadWriteOnce
size: "100Gi"