$ kubectl get globalnetworkpolicy -o yaml
...
egress:
- action: Allow
destination:
ports:
- 53
selector: k8s-app == "kube-dns"
protocol: UDP
source: {}
- action: Allow
destination: {}
protocol: UDP
source: {}
- action: Allow
destination:
ports:
- 53
selector: k8s-app == "kube-dns"
protocol: TCP
source: {}
- action: Allow
destination: {}
protocol: TCP
source: {}
...