File size: 417 Bytes
de5a0fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: arf-api-ingress
  namespace: arf-system
spec:
  podSelector:
    matchLabels:
      app: arf-api
  policyTypes:
    - Ingress
  ingress:
    # Allow traffic only from the gateway pods on port 8000
    - from:
        - podSelector:
            matchLabels:
              app: arf-gateway
      ports:
        - port: 8000
          protocol: TCP