From ee9c47147e089d8bf91e4c7478ac6bb2444d6d11 Mon Sep 17 00:00:00 2001 From: Oleksandr Lysenko Date: Wed, 13 Dec 2023 10:34:07 +0200 Subject: [PATCH] [stable/node-local-dns]: customize liveness probe port (#553) Co-authored-by: Sarga --- stable/node-local-dns/Chart.yaml | 2 +- stable/node-local-dns/README.md | 3 ++- stable/node-local-dns/templates/configmap.yaml | 2 +- stable/node-local-dns/templates/daemonset.yaml | 2 +- stable/node-local-dns/values.yaml | 3 +++ 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/stable/node-local-dns/Chart.yaml b/stable/node-local-dns/Chart.yaml index b63f2b41..cc1029c5 100644 --- a/stable/node-local-dns/Chart.yaml +++ b/stable/node-local-dns/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: node-local-dns -version: 2.0.3 +version: 2.0.4 appVersion: 1.22.23 maintainers: - name: gabrieladt diff --git a/stable/node-local-dns/README.md b/stable/node-local-dns/README.md index 05fae994..9af07996 100644 --- a/stable/node-local-dns/README.md +++ b/stable/node-local-dns/README.md @@ -1,6 +1,6 @@ # node-local-dns -![Version: 2.0.3](https://img.shields.io/badge/Version-2.0.3-informational?style=flat-square) ![AppVersion: 1.22.23](https://img.shields.io/badge/AppVersion-1.22.23-informational?style=flat-square) +![Version: 2.0.4](https://img.shields.io/badge/Version-2.0.4-informational?style=flat-square) ![AppVersion: 1.22.23](https://img.shields.io/badge/AppVersion-1.22.23-informational?style=flat-square) A chart to install node-local-dns. @@ -53,6 +53,7 @@ helm install my-release deliveryhero/node-local-dns -f values.yaml | config.customConfig | string | `""` | | | config.dnsDomain | string | `"cluster.local"` | | | config.dnsServer | string | `"172.20.0.10"` | | +| config.healthPort | int | `8080` | | | config.localDns | string | `"169.254.20.25"` | | | config.setupInterface | bool | `true` | | | config.setupIptables | bool | `true` | | diff --git a/stable/node-local-dns/templates/configmap.yaml b/stable/node-local-dns/templates/configmap.yaml index 4cc121ea..00f8cde5 100644 --- a/stable/node-local-dns/templates/configmap.yaml +++ b/stable/node-local-dns/templates/configmap.yaml @@ -24,7 +24,7 @@ data: {{ .Values.config.commProtocol }} } prometheus :9253 - health + health :{{ .Values.config.healthPort }} } in-addr.arpa:53 { errors diff --git a/stable/node-local-dns/templates/daemonset.yaml b/stable/node-local-dns/templates/daemonset.yaml index 67eda105..dbba55f9 100644 --- a/stable/node-local-dns/templates/daemonset.yaml +++ b/stable/node-local-dns/templates/daemonset.yaml @@ -92,7 +92,7 @@ spec: livenessProbe: httpGet: path: /health - port: 8080 + port: {{ .Values.config.healthPort }} initialDelaySeconds: 60 timeoutSeconds: 5 volumeMounts: diff --git a/stable/node-local-dns/values.yaml b/stable/node-local-dns/values.yaml index 6af0c66e..ebebfdda 100644 --- a/stable/node-local-dns/values.yaml +++ b/stable/node-local-dns/values.yaml @@ -16,6 +16,9 @@ config: # Set communication protocol. Options are `prefer_udp` or `force_tcp` commProtocol: "force_tcp" + # Port used for the health endpoint + healthPort: 8080 + setupInterface: true setupIptables: true