UNCLASSIFIED

You need to sign in or sign up before continuing.
ingress-monitoring-istiod.yaml 554 Bytes
Newer Older
1 2 3 4
{{- if and .Values.networkPolicies.enabled .Values.monitoring.enabled}}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
Micah Nagel's avatar
Micah Nagel committed
5
  name: ingress-metric-scraping
6 7 8 9
  namespace: "{{ .Release.Namespace }}"
spec:
  ingress:
    - from:
Micah Nagel's avatar
Micah Nagel committed
10 11 12 13 14 15
      - namespaceSelector:
          matchLabels:
            app.kubernetes.io/name: monitoring
        podSelector:
          matchLabels:
            app: prometheus
16 17 18 19 20
      ports:
        - port: 15014
          protocol: TCP
  podSelector:
    matchLabels:
Micah Nagel's avatar
Micah Nagel committed
21
      app: istiod
22 23 24
  policyTypes:
    - Ingress
{{- end }}