< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

创建网络策略

本节介绍如何创建网络策略。

Prerequisites

  • You should join a cluster and have the 集群网络资源管理 permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".

  • KubeSphere 平台需要安装并启用 KubeSphere 网络扩展组件。

Steps

  1. Log in to the KubeSphere web console with a user who has the 集群网络资源管理 permission, and access your cluster.

  2. Click 网络 > 网络策略 in the left navigation pane.

  3. Click Create on the page.

  4. 创建网络策略对话框,设置网络策略的配置文件,然后点击确定

    • 在右上角点击upload-dark-white 可上传配置文件。

    • 在右上角点击download-dark-white 可下载配置文件。

    Note

    KubeSphere 目前不支持以图形化的方式创建网络策略。有关网络策略配置文件的具体参数,请参阅 Kubernetes 官方文档

    网络策略创建完成后将显示在网络策略列表中。

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.

What’s on this Page