Installing with the GKE add-on

This page describes how to install Config Connector on a Google Kubernetes Engine (GKE) cluster using the Config Connector add-on.

For details on each installation options with their advantages and disadvantages, see Choosing an installation type.

Before you begin

Before you start, make sure that you have performed the following tasks:

  • Enable the Google Kubernetes Engine API.
  • Enable Google Kubernetes Engine API
  • If you want to use the Google Cloud CLI for this task, install and then initialize the gcloud CLI. If you previously installed the gcloud CLI, get the latest version by running the gcloud components update command. Earlier gcloud CLI versions might not support running the commands in this document.

Installing the Config Connector add-on

You use the Config Connector add-on by creating a new GKE cluster, or enabling it on an existing cluster. After installing the Config Connector add-on, you configure your Config Connector installation with your Google service accounts and your namespaces.

Requirements

The Config Connector add-on has the following requirements:

Setting up a GKE cluster

You can use the Config Connector add-on on a new or existing cluster.

Creating a new cluster with the Config Connector add-on enabled

You can create a GKE cluster using the gcloud CLI or the Google Cloud console.

gcloud

To create a cluster with the Google Cloud CLI run the following command:

gcloud container clusters create CLUSTER_NAME \
    --release-channel CHANNEL \
    --addons ConfigConnector \
    --workload-pool=PROJECT_ID.svc.id.goog \
    --logging=SYSTEM \
    --monitoring=SYSTEM

Replace the following:

  • CLUSTER_NAME with the name of your GKE cluster.
  • CHANNEL with a GKE release channel, rapid and regular are supported.
  • PROJECT_ID with your Google Cloud project ID.

Google Cloud console

To create a cluster with the Google Cloud console, perform the following steps:

  1. Visit the Google Kubernetes Engine menu in Google Cloud console.

    Visit the Google Kubernetes Engine menu

  2. Click Create. The Create a Kubernetes cluster page appears.

  3. Specify a Name for your cluster.

  4. Choose a supported Master version.

  5. Configure the rest of your cluster as you want.

  6. From the navigation pane, under Cluster, click Security.

  7. Select the Enable Workload Identity checkbox.

  8. From the navigation pane on the left side, under Cluster, click Features.

  9. Select the Enable Config Connector checkbox.

  10. Click Create.

After you've created the cluster, move on to Creating an identity.

Enabling the Config Connector add-on on an existing cluster

You can enable the Config Connector add-on on an existing GKE cluster with gcloud or the Google Cloud console.

Prerequisites

Enabling the Config Connector add-on on an existing cluster has the following prerequisites:

  • You need a cluster that meets the requirements for the Config Connector add-on.
  • Set up Workload Identity Federation for GKE on the cluster where you want to install Config Connector.

To enable Workload Identity Federation for GKE for a node pool, use the gcloud command-line tool:

gcloud container node-pools update NODE_POOL \
    --workload-metadata=GKE_METADATA \
    --cluster CLUSTER_NAME

Replace the following:

  • NODE_POOL with your node pool's name
  • CLUSTER_NAME with your cluster's name
Enabling the Config Connector add-on

You can enable the Config Connector add-on in an existing GKE cluster with the Google Cloud CLI or the Google Cloud console.

gcloud

To enable the Config Connector add-on in an existing GKE cluster use the Google Cloud CLI:

gcloud container clusters update CLUSTER_NAME \
    --update-addons ConfigConnector=ENABLED

Replace CLUSTER_NAME with the name of your GKE cluster.

Google Cloud console

  1. Visit the Google Kubernetes Engine menu in Google Cloud console.

    Visit the Google Kubernetes Engine menu

  2. Select the cluster that you want to install Config Connector on. The Cluster Details page appears.

  3. Under the Features section, locate the Config Connector row and click Edit.

  4. Select the Enable Config Connector checkbox and click