Workspace Network Isolation
Prerequisites
You have already enabled Network Policies.
Use a user of the
workspace-admin
role. For example, use thews-admin
user created in Create Workspaces, Projects, Users and Roles.Note
For the implementation of the network policy, you can refer to KubeSphere NetworkPolicy.
Enable or Disable Workspace Network Isolation
Workspace network isolation is disabled by default. You can turn on network isolation in Basic Information under Workspace Settings.
Note
When network isolation is turned on, egress traffic will be allowed by default, while ingress traffic will be denied for different workspaces. If you need to customize your network policy, you need to turn on Project Network Isolation and add a network policy in Project Settings.
You can also disable network isolation on the Basic Information page.
Best Practice
To ensure that all Pods in a workspace are secure, a best practice is to enable workspace network isolation.
When network isolation is on, the workspace cannot be accessed by other workspaces. If a workspace’s default network isolation doesn’t meet your needs, turn on project network isolation and customize your project’s network policy.
Feedback
Was this page Helpful?
Yes No