diff --git a/prometheus-kube-state-metrics/templates/network_policy.yaml b/prometheus-kube-state-metrics/templates/network_policy.yaml index edd570b55..f0fc256be 100644 --- a/prometheus-kube-state-metrics/templates/network_policy.yaml +++ b/prometheus-kube-state-metrics/templates/network_policy.yaml @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */}} {{- if .Values.manifests.network_policy -}} -{{- $netpol_opts := dict "envAll" . "name" "application" "label" "kube_state_metrics" -}} +{{- $netpol_opts := dict "envAll" . "name" "application" "label" "kube-state-metrics" -}} {{ $netpol_opts | include "helm-toolkit.manifests.kubernetes_network_policy" }} {{- end -}} diff --git a/prometheus-kube-state-metrics/values.yaml b/prometheus-kube-state-metrics/values.yaml index 61d1ebf3f..cd4807c1e 100644 --- a/prometheus-kube-state-metrics/values.yaml +++ b/prometheus-kube-state-metrics/values.yaml @@ -149,7 +149,7 @@ endpoints: default: 10252 network_policy: - kube_state_metrics: + kube-state-metrics: ingress: - {} egress: diff --git a/prometheus-process-exporter/templates/network_policy.yaml b/prometheus-process-exporter/templates/network_policy.yaml index 653cd1768..27dc95e4e 100644 --- a/prometheus-process-exporter/templates/network_policy.yaml +++ b/prometheus-process-exporter/templates/network_policy.yaml @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */}} {{- if .Values.manifests.network_policy -}} -{{- $netpol_opts := dict "envAll" . "name" "application" "label" "prometheus_process_exporter" -}} +{{- $netpol_opts := dict "envAll" . "name" "application" "label" "process_exporter" -}} {{ $netpol_opts | include "helm-toolkit.manifests.kubernetes_network_policy" }} {{- end -}} diff --git a/prometheus-process-exporter/values.yaml b/prometheus-process-exporter/values.yaml index a1cde2129..999acc875 100644 --- a/prometheus-process-exporter/values.yaml +++ b/prometheus-process-exporter/values.yaml @@ -149,7 +149,7 @@ endpoints: default: 9256 network_policy: - prometheus_process_exporter: + process_exporter: ingress: - {} egress: