32 lines
		
	
	
		
			785 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			785 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # apiVersion: networking.k8s.io/v1
 | |
| # kind: NetworkPolicy
 | |
| # metadata:
 | |
| #   labels:
 | |
| #     app.kubernetes.io/component: exporter
 | |
| #     app.kubernetes.io/name: kube-state-metrics
 | |
| #     app.kubernetes.io/part-of: kube-prometheus
 | |
| #     app.kubernetes.io/version: 2.8.1
 | |
| #   name: kube-state-metrics
 | |
| #   namespace: monitoring
 | |
| # spec:
 | |
| #   egress:
 | |
| #   - {}
 | |
| #   ingress:
 | |
| #   - from:
 | |
| #     - podSelector:
 | |
| #         matchLabels:
 | |
| #           app.kubernetes.io/name: prometheus
 | |
| #     ports:
 | |
| #     - port: 8443
 | |
| #       protocol: TCP
 | |
| #     - port: 9443
 | |
| #       protocol: TCP
 | |
| #   podSelector:
 | |
| #     matchLabels:
 | |
| #       app.kubernetes.io/component: exporter
 | |
| #       app.kubernetes.io/name: kube-state-metrics
 | |
| #       app.kubernetes.io/part-of: kube-prometheus
 | |
| #   policyTypes:
 | |
| #   - Egress
 | |
| #   - Ingress
 |