Skip to main content
Skip table of contents

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

image-20240721-073114.png

Administrator > Kubernetes > K8s Access Control > Policies > List Details > Go to Editor Mode

  1. Navigate to the Administrator > Kubernetes > K8s Access Control > Policies menu.

  2. Click on the policy you wish to edit in the list.

  3. Click the Go to Editor Mode button on the right side of the Detail tab to access the Code Editor screen.

  4. Use the following methods to modify the desired policy content in the code editor window.

    1. You can directly edit the code and we support wildcard ("*") and regular expression (RE2 format) patterns.

    2. Review the definitions of each item from the Tips tab and incorporate them into your code.

    3. Insert or modify content in the code using buttons on the right.

  5. Once you have defined your access policies, click the Save Changes button at the top right to save the policy.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.