mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-26 07:29:32 +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
|
||
|
|