Configure Kubernetes Policies
Overview
You can administer access policies for Kubernetes clusters managed by your organization. Kubernetes policies function as Policy as Code (PaC), utilizing YAML format.
You can set configurations to allow access to resources and API scopes for clusters, and define policies based on resource tags and user attributes. Moreover, you can specify IP addresses that are permitted to access.
Editing Policy Code
Navigate to the Administrator > Kubernetes > K8s Access Control > Policies menu.
Click on the policy you wish to edit in the list.
Click the
Go to Editor Mode
button on the right side of the Detail tab to access the Code Editor screen.Use the following methods to modify the desired policy content in the code editor window.
You can directly edit the code and we support wildcard ("*") and regular expression (RE2 format) patterns.
Debug any errors in your directly edited code using the Errors tab at the bottom.
Review the definitions of each item from the Tips tab and incorporate them into your code.
Note: Kubernetes Policy Tips
Insert or modify content in the code using buttons on the right.
Once you have defined your access policies, click the
Save Changes
button at the top right to save the policy.