Illustration: Network Policies (opens in new tab)
CKS Study Memo on Network Policies official document: You can control traffic between pods using the NetworkPolicy resource. Use NetworkPolicy when you want to restrict traffic, for example for security reasons. So what we need to know is how to write a NetworkPolicy manifest. In the sample manifest, the selectors are written like this. ingress: - from: - namespaceSelector: matchLabels: user: alice - podSelector: matchLabels: role: client This means the policy is applied if the namespace labe...
Read the original article