Prometheus fix label mismatch for netpol
Ensures that the label selectors match the labels actually applied to the pods, to allow network policies to be applied correctly. prometheus-kube-state-metrics deployment: application=kube-state-metrics prometheus-process-exporter daemonset: application=process_exporter Change-Id: I964bac9e85db28c8af926158f13c99883029ac84
This commit is contained in:
parent
0aad14a6f9
commit
d607caf6e1
@ -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 -}}
|
||||
|
@ -149,7 +149,7 @@ endpoints:
|
||||
default: 10252
|
||||
|
||||
network_policy:
|
||||
kube_state_metrics:
|
||||
kube-state-metrics:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
|
@ -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 -}}
|
||||
|
@ -149,7 +149,7 @@ endpoints:
|
||||
default: 9256
|
||||
|
||||
network_policy:
|
||||
prometheus_process_exporter:
|
||||
process_exporter:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
|
Loading…
x
Reference in New Issue
Block a user