---
title: "Configure integration with a Managed Kubernetes cluster"
sidebar_label: "Configure integration with Managed Kubernetes"
description: "How to configure integration with Managed Kubernetes"
sidebar_position: 2
toc_max_heading_level: 2
---

import CloseIcon from '@selectel/docux/icons/close'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Configure integration with a Managed Kubernetes cluster

To deploy a Docker image from the Container Registry to a Managed Kubernetes cluster, [configure the integration between these objects](#configure-integration) in the Control panel.

During integration, an authorization token in Container Registry is created automatically and passed to the selected Managed Kubernetes cluster — authentication data is automatically added to the default service account and the secret for all cluster namespaces.

You can use secrets that were automatically generated in other service accounts. Learn more in the [Configure Service Accounts for Pods](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account) documentation for Kubernetes.

If necessary, you can [disable the integration of Container Registry and Managed Kubernetes](#disable-integration).

## Configure integration \{#configure-integration}

You can configure integration from Container Registry with one or more Managed Kubernetes clusters.

1. In the [Control panel](https://my.selectel.ru/vpc/default/craas/), on the top menu, click **Products** and select **Container Registry**.
2. Open the **Registries** tab.
3. Open the registry page.
4. Click **Access the Registry**.
5. Select **Integration with Kubernetes**.
6. Click **Continue**.
7. Select the Managed Kubernetes clusters that will be granted access to the selected registry. You can only select clusters with the [status `ACTIVE`](/managed-kubernetes/clusters/cluster-statuses.mdx). Clusters with other statuses are marked as `INACTIVE`.
8. If you are setting up the integration for the first time, click **Integrate**.
9. If you are changing the integration settings, click **Save**.

   Information about the Managed Kubernetes clusters that have been granted access to the selected registry is displayed on the registry page, under its name.

## Disable integration \{#disable-integration}

1. In the [Control panel](https://my.selectel.ru/vpc/default/craas/), on the top menu, click **Products** and select **Container Registry**.
2. Open the **Registries** tab.
3. Open the registry page.
4. Click **Access the Registry**.
5. Select **Integration with Kubernetes**.
6. Click **Continue**.
7. To remove all Managed Kubernetes clusters that have been granted access to the selected registry, click <CloseIcon />.
8. Click **Save**.

<Formbricks />
