forked from k-space/kube
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			776 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			776 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						|
apiVersion: networking.k8s.io/v1
 | 
						|
kind: NetworkPolicy
 | 
						|
metadata:
 | 
						|
  name: minio-operator
 | 
						|
spec:
 | 
						|
  podSelector:
 | 
						|
    matchLabels:
 | 
						|
      v1.min.io/tenant: minio
 | 
						|
  policyTypes:
 | 
						|
  - Ingress
 | 
						|
  - Egress
 | 
						|
  egress:
 | 
						|
    - to:
 | 
						|
      - namespaceSelector:
 | 
						|
          matchLabels:
 | 
						|
            kubernetes.io/metadata.name: minio-operator
 | 
						|
      ports:
 | 
						|
      - protocol: TCP
 | 
						|
        port: 4222
 | 
						|
    - to:
 | 
						|
      - podSelector:
 | 
						|
          matchLabels:
 | 
						|
            v1.min.io/tenant: minio
 | 
						|
      ports:
 | 
						|
      - port: 9000
 | 
						|
  ingress:
 | 
						|
    - from:
 | 
						|
      - podSelector: {}
 | 
						|
      ports:
 | 
						|
      - port: 9000
 | 
						|
    - from:
 | 
						|
      - namespaceSelector:
 | 
						|
          matchLabels:
 | 
						|
            kubernetes.io/metadata.name: traefik
 | 
						|
        podSelector:
 | 
						|
          matchLabels:
 | 
						|
            app.kubernetes.io/name: traefik
 |