diff --git a/charts/adguard-home/Chart.yaml b/charts/adguard-home/Chart.yaml index 7c04e395..65534b1e 100644 --- a/charts/adguard-home/Chart.yaml +++ b/charts/adguard-home/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v0.102.0 description: DNS proxy as ad-blocker for local network name: adguard-home -version: 2.1.1 +version: 2.2.0 keywords: - adguard-home - adguard diff --git a/charts/adguard-home/templates/deployment.yaml b/charts/adguard-home/templates/deployment.yaml index 19bd6eee..41c17daa 100644 --- a/charts/adguard-home/templates/deployment.yaml +++ b/charts/adguard-home/templates/deployment.yaml @@ -83,6 +83,11 @@ spec: - name: config mountPath: /opt/adguardhome/conf readOnly: false + {{- if .Values.tlsSecretName }} + - name: certs + mountPath: /certs + readOnly: false + {{- end }} ports: - name: http {{- if .Values.configAsCode.enabled }} @@ -153,6 +158,11 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} volumes: + {{- if .Values.tlsSecretName }} + - name: certs + secret: + secretName: {{ .Values.tlsSecretName }} + {{- end }} {{- if .Values.configAsCode.enabled }} - name: configmap configMap: diff --git a/charts/adguard-home/values.yaml b/charts/adguard-home/values.yaml index 4be54767..06d6112f 100644 --- a/charts/adguard-home/values.yaml +++ b/charts/adguard-home/values.yaml @@ -165,6 +165,10 @@ configAsCode: verbose: false 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: repository: adguard/adguardhome # Image tag is set via charts appVersion. If you want to override the tag, specify it here