k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/default/prometheus-podMonitorNetPolicyClient.yaml (about)

     1  {{$ENABLE_NETWORK_POLICY_ENFORCEMENT_LATENCY_TEST := DefaultParam .CL2_ENABLE_NETWORK_POLICY_ENFORCEMENT_LATENCY_TEST false}}
     2    
     3  {{if $ENABLE_NETWORK_POLICY_ENFORCEMENT_LATENCY_TEST}}
     4  apiVersion: monitoring.coreos.com/v1
     5  kind: PodMonitor
     6  metadata:
     7    labels:
     8      k8s-app: net-policy-client-pods
     9    name: net-policy-client-pods
    10    namespace: monitoring
    11  spec:
    12    podMetricsEndpoints:
    13    - interval: 30s
    14      port: npdelaymetrics
    15    jobLabel: k8s-app
    16    selector:
    17       matchLabels:
    18         test: np-test-client
    19    namespaceSelector:
    20      any: true
    21  {{end}}