Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page is out of date.
Please see the relevant page for the latest release: e.g. Release J - Run in Docker


network policy is used to control the traffic flow between endpoints in k8s cluster.

...

Code Block
languagebash
titleinstall cilium
cilium install

After successful installation, we should see the pods:

Image Added


Check cilium status:

Code Block
languagebash
titlecilium status
cilium status

Image Added

Now we have network plugin enabled in k8s cluster, we can then apply network policy to NONRTRIC.

Deploy NONRTRIC

Code Block
languagebash
titledeploy nonrtric
kubectl apply -f https://raw.githubusercontent.com/yanhuanwang/k8s/master/statefulset/nosdnc.yml

after deployment, you should be able to see nonrtric services/pods are up and running:

Image Added

pay attention to the labels above, in this demo we will use labels to define the network-policy rules.

...