VK Cloud logo

Security policy management

In the Managed Containers service, you can manage the security policies of Kubernetes clusters via the VK Cloud personal dashboard. This serves as an alternative to working directly with the resources corresponding to the Gatekeeper policies, for example, using kubectl.

Viewing security policies

  1. Go to the VK Cloud personal dashboard.
  2. Select the project where the desired cluster is located.
  3. Go to the Kubernetes Clusters → Kubernetes Clusters section.
  4. Click the name of the desired cluster.
  5. Go to the Cluster Security tab.

For the policies listed on this tab, the following information is provided:

  • The policy status (enabled or disabled) next to its name.
  • The namespace within which the policy applies (either all namespaces or a specific namespace).
  • The policy settings values.

A cluster may contain several identical policies with different settings for different namespaces.

Adding a security policy

  1. Go to the VK Cloud personal dashboard.

  2. Select the project where the desired cluster is located.

  3. Go to the Kubernetes Clusters → Kubernetes Clusters section.

  4. Click the name of the desired cluster.

  5. Go to the Cluster Security tab.

  6. Click the Add security policy button.

  7. Select the security policy from the drop-down list.

  8. Select the namespace within which the selected policy will be applied from the drop-down list.

    The policy configuration in the cluster affects which namespaces can be selected when modifying a policy:

    • If the policy is the only one in the cluster and there are no other similar policies, you can select all namespaces instead of a specific namespace and vice versa.
    • If at least one similar policy for specific namespaces has already been added to the cluster, selecting all namespaces is not possible.
  9. Configure the policy settings.

  10. Click the Add security policy button.

    The cluster reconfiguration will begin. The process may take some time.

    The added policy will be automatically enabled and will take effect. If necessary, the policy can be disabled after its creation.

Enabling and disabling a security policy

This is a group operation: if necessary, you can enable or disable several policies at once by selecting them using checkboxes.

You can manage the operation of individual policies in the cluster by enabling and disabling them:

  1. Go to the VK Cloud personal dashboard.

  2. Select the project where the desired cluster is located.

  3. Go to the Kubernetes Clusters → Kubernetes Clusters section.

  4. Click the name of the desired cluster.

  5. Go to the Cluster Security tab.

  6. Perform one of the actions for the desired policy:

    • Select the policy using a checkbox, then click the Enable or Disable button.
    • Click Security policy management for the security policy and select Enable or Disable.

    The cluster reconfiguration will begin. The process may take some time.

Editing a security policy

  1. Go to the VK Cloud personal dashboard.

  2. Select the project where the desired cluster is located.

  3. Go to the Kubernetes Clusters → Kubernetes Clusters section.

  4. Click the name of the desired cluster.

  5. Go to the Cluster Security tab.

  6. Click Security policy management for the desired policy and select Edit.

  7. If necessary, select a different namespace from the drop-down list.

    The policy configuration in the cluster affects which namespaces can be selected when modifying a policy:

    • If the policy is the only one in the cluster and there are no other similar policies, you can select all namespaces instead of a specific namespace and vice versa.
    • If at least one similar policy for specific namespaces has already been added to the cluster, selecting all namespaces is not possible.
  8. If necessary, change the policy settings.

  9. Click the Save button.

    The cluster reconfiguration will begin. The process may take some time.

Deleting a security policy

This is a group operation: if necessary, you can delete several policies at once by selecting them using checkboxes.

To delete a policy:

  1. Go to the VK Cloud personal dashboard.

  2. Select the project where the desired cluster is located.

  3. Go to the Kubernetes Clusters → Kubernetes Clusters section.

  4. Click the name of the desired cluster.

  5. Go to the Cluster Security tab.

  6. Perform one of the actions for the desired policy:

    • Select the policy using a checkbox, then click the Delete button.
    • Click Security policy management for the policy and select Delete.
  7. Click the Confirm button.

Was this article helpful?