mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-27 12:19:33 +01:00
29 lines
632 B
YAML
29 lines
632 B
YAML
|
# Allow Grafana access and in-cluster Prometheus scraping
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: NetworkPolicy
|
||
|
metadata:
|
||
|
name: prometheus
|
||
|
namespace: monitoring
|
||
|
spec:
|
||
|
podSelector:
|
||
|
matchLabels:
|
||
|
name: prometheus
|
||
|
ingress:
|
||
|
- ports:
|
||
|
- protocol: TCP
|
||
|
port: 9090
|
||
|
from:
|
||
|
- namespaceSelector:
|
||
|
matchLabels:
|
||
|
name: monitoring
|
||
|
podSelector:
|
||
|
matchLabels:
|
||
|
name: grafana
|
||
|
- namespaceSelector:
|
||
|
matchLabels:
|
||
|
name: monitoring
|
||
|
podSelector:
|
||
|
matchLabels:
|
||
|
name: prometheus
|
||
|
|