From 1e3a656c0bf9b04d6f1eeeb66e9176de6b943eaf Mon Sep 17 00:00:00 2001 From: Alon Gluz Date: Thu, 18 Jul 2024 15:15:53 +0300 Subject: [PATCH] use selecgtor labels for service monitor --- stable/node-local-dns/Chart.yaml | 16 ++++++++-------- stable/node-local-dns/README.md | 2 +- .../node-local-dns/templates/servicemonitor.yaml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/stable/node-local-dns/Chart.yaml b/stable/node-local-dns/Chart.yaml index 3f600c04..23e0aedf 100644 --- a/stable/node-local-dns/Chart.yaml +++ b/stable/node-local-dns/Chart.yaml @@ -1,18 +1,18 @@ apiVersion: v2 name: node-local-dns -version: 2.0.13 +version: 2.0.14 appVersion: 1.23.1 maintainers: -- name: gabrieladt - email: no-reply@deliveryhero.com + - name: gabrieladt + email: no-reply@deliveryhero.com icon: https://miro.medium.com/max/641/1*q3vcbyVXcvaRnFLEQEHrXw.png description: | - A chart to install node-local-dns. + A chart to install node-local-dns. - NodeLocal DNSCache improves Cluster DNS performance by running a DNS caching agent on cluster nodes as a DaemonSet. + NodeLocal DNSCache improves Cluster DNS performance by running a DNS caching agent on cluster nodes as a DaemonSet. - In today's architecture, Pods in 'ClusterFirst' DNS mode reach out to a kube-dns serviceIP for DNS queries. This is translated to a kube-dns/CoreDNS endpoint via iptables rules added by kube-proxy. With this new architecture, Pods will reach out to the DNS caching agent running on the same node, thereby avoiding iptables DNAT rules and connection tracking. The local caching agent will query kube-dns service for cache misses of cluster hostnames ("cluster.local" suffix by default). + In today's architecture, Pods in 'ClusterFirst' DNS mode reach out to a kube-dns serviceIP for DNS queries. This is translated to a kube-dns/CoreDNS endpoint via iptables rules added by kube-proxy. With this new architecture, Pods will reach out to the DNS caching agent running on the same node, thereby avoiding iptables DNAT rules and connection tracking. The local caching agent will query kube-dns service for cache misses of cluster hostnames ("cluster.local" suffix by default). - Further documentation is [here](https://kubernetes.io/docs/tasks/administer-cluster/nodelocaldns/) + Further documentation is [here](https://kubernetes.io/docs/tasks/administer-cluster/nodelocaldns/) - This helm chart works for both kube-proxy setups (iptables or ipvs). + This helm chart works for both kube-proxy setups (iptables or ipvs). diff --git a/stable/node-local-dns/README.md b/stable/node-local-dns/README.md index 9b5df75c..fa570f0c 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.13](https://img.shields.io/badge/Version-2.0.13-informational?style=flat-square) ![AppVersion: 1.23.1](https://img.shields.io/badge/AppVersion-1.23.1-informational?style=flat-square) +![Version: 2.0.14](https://img.shields.io/badge/Version-2.0.14-informational?style=flat-square) ![AppVersion: 1.23.1](https://img.shields.io/badge/AppVersion-1.23.1-informational?style=flat-square) A chart to install node-local-dns. diff --git a/stable/node-local-dns/templates/servicemonitor.yaml b/stable/node-local-dns/templates/servicemonitor.yaml index acd6d902..e073fa7f 100644 --- a/stable/node-local-dns/templates/servicemonitor.yaml +++ b/stable/node-local-dns/templates/servicemonitor.yaml @@ -32,5 +32,5 @@ spec: - kube-system selector: matchLabels: - k8s-app: {{ include "node-local-dns.name" . }} + {{- include "node-local-dns.selectorLabels" . | nindent 6 }} {{- end -}}