-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project network isolation can be enabled if RKE network plugin supports network policies #31338
Comments
Support MatrixRancher RKE Cluster Project Network Isolation (PNI) support per CNI
TestingCurrently Rancher only allows for PNI to be enabled when selecting the Canal Network Provider when provisioning an RKE cluster. These changes allow for PNI to be enabled when using other CNIs. Until this UI issue is complete, you can provision a cluster with PNI enabled by Selecting your CNI, editing the cluster as YAML, and flipping the top-level What follows is an outline of how I tested these changes. Allowed Network PathsWith PNI enabled, and the below testing setup, these are the network paths that should be allowed Disallowed Network PathsAnd these are the network paths that should not be allowed, since the traffic crosses project boundaries Steps
|
rancher/rancher:v2.5-head 31f00c1 Tested enabling Project Network Isolation with the following CNIs:
Test Case
2.6 Forwardport - #32220 UI Validations - #32106 |
What kind of request is this (question/bug/enhancement/feature request):
Enhancement
Steps to reproduce (least amount of steps as possible):
When configuring an RKE network provider that supports Kubernetes network policies, such as the Cisco ACI CNI plugin, Rancher should allow the cluster option to enable Project Network Isolation to be set (
enable_network_policy: true
).Currently, when enabling the network isolation with such a compatible network provider the cluster provisioning fails with a validation error.
The validation is implemented here:
rancher/pkg/api/norman/store/cluster/cluster_store.go
Lines 713 to 714 in 41045a8
Other details that may be helpful:
Rancher 2.5.5
The text was updated successfully, but these errors were encountered: