forked from k-space/kube
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| ---
 | |
| apiVersion: networking.k8s.io/v1
 | |
| kind: NetworkPolicy
 | |
| metadata:
 | |
|   name: freeswitch
 | |
| spec:
 | |
|   podSelector:
 | |
|     matchLabels:
 | |
|       app: freeswitch
 | |
|   policyTypes:
 | |
|     - Ingress
 | |
|     - Egress
 | |
|   ingress:
 | |
|     - from:
 | |
|         - namespaceSelector:
 | |
|             matchLabels:
 | |
|               kubernetes.io/metadata.name: monitoring
 | |
|           podSelector:
 | |
|             matchLabels:
 | |
|               app.kubernetes.io/name: prometheus
 | |
|     - from:
 | |
|         - ipBlock:
 | |
|             cidr: 100.101.0.0/16
 | |
|     - from:
 | |
|         - ipBlock:
 | |
|             cidr: 100.102.0.0/16
 | |
|     - from:
 | |
|         - ipBlock:
 | |
|             cidr: 81.90.125.224/32 # Lauri home
 | |
|     - from:
 | |
|         - ipBlock:
 | |
|             cidr: 172.20.8.241/32 # Erki A
 | |
|     - from:
 | |
|         - ipBlock:
 | |
|             cidr: 212.47.211.10/32 # Elisa SIP
 | |
|     - from:
 | |
|         - ipBlock:
 | |
|             cidr: 212.47.211.10/32 # Elisa SIP        
 | |
|   egress:
 | |
|     - to:
 | |
|         - ipBlock:
 | |
|             cidr: 212.47.211.10/32  # Elisa SIP
 | |
|     - to:
 | |
|         - ipBlock:
 | |
|             cidr: 195.222.16.38/32  # Elisa SIP
 | |
|     - to:
 | |
|       ports:
 | |
|         - port: 53
 | |
|           protocol: UDP |