Create Network Policies
This section introduces how to create network policies.
Prerequisites
You should join a cluster and have the Cluster Network Resource Management permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".
KubeSphere Network should have been installed and enabled.
Steps
Log in to the KubeSphere web console with a user who has the Cluster Network Resource Management permission, and access your cluster.
Click Network > Network Policies in the left navigation pane.
Click Create on the page.
In the Create Network Policy dialog box, set the configuration for the network policy, and then click OK.
Click in the upper right corner to upload the configuration file.
Click in the upper right corner to download the configuration file.
Note KubeSphere currently does not support creating network policies in a graphical way. For specific parameters of the network policy configuration file, please refer to the Kubernetes Documentation.
After the network policy is created, it will be displayed in the network policy list.
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.