[Adguard-home] Allow to mount secret with certs so we can set the tls … (#87)

* Adguard-home: Allow to mount secret with certs so we can set the tls configs with these

* adguard-home bump to 2.2.0
This commit is contained in:
Hugo Fonseca 2020-10-08 20:38:10 +01:00 committed by GitHub
parent eb2f4bac88
commit 8be3edfc59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v0.102.0 appVersion: v0.102.0
description: DNS proxy as ad-blocker for local network description: DNS proxy as ad-blocker for local network
name: adguard-home name: adguard-home
version: 2.1.1 version: 2.2.0
keywords: keywords:
- adguard-home - adguard-home
- adguard - adguard

View File

@ -83,6 +83,11 @@ spec:
- name: config - name: config
mountPath: /opt/adguardhome/conf mountPath: /opt/adguardhome/conf
readOnly: false readOnly: false
{{- if .Values.tlsSecretName }}
- name: certs
mountPath: /certs
readOnly: false
{{- end }}
ports: ports:
- name: http - name: http
{{- if .Values.configAsCode.enabled }} {{- if .Values.configAsCode.enabled }}
@ -153,6 +158,11 @@ spec:
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumes: volumes:
{{- if .Values.tlsSecretName }}
- name: certs
secret:
secretName: {{ .Values.tlsSecretName }}
{{- end }}
{{- if .Values.configAsCode.enabled }} {{- if .Values.configAsCode.enabled }}
- name: configmap - name: configmap
configMap: configMap:

View File

@ -165,6 +165,10 @@ configAsCode:
verbose: false verbose: false
schema_version: 6 schema_version: 6
tlsSecretName: ""
# name of the secret that contains the tls cert and key.
# this secret will be mounted inside the adguard container /certs path. e.g. works with cert-manager
image: image:
repository: adguard/adguardhome repository: adguard/adguardhome
# Image tag is set via charts appVersion. If you want to override the tag, specify it here # Image tag is set via charts appVersion. If you want to override the tag, specify it here