# Choosing an installation type

The page provides you with an overview of the different installations options
you can use when installing Config Connector.

You can install Config Connector in one of three ways:

- **[Manual installation](https://docs.cloud.google.com/config-connector/docs/how-to/install-manually.md.txt)** (Recommended):
  Manually installing with the
  [Kubernetes operator](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/)
  gives you the most flexibility. You can install Config Connector in
  **namespaced mode** (recommended for most use cases) or **cluster mode**.
  Manual installation lets you control the exact version of Config Connector
  you install and when you upgrade.

- **[Config Controller](https://docs.cloud.google.com/kubernetes-engine/config-controller/docs/overview.md.txt)** :
  Config Controller is a hosted service that includes Config Connector.
  The Config Connector version in Config Controller is managed by Google
  and automatically updated regularly as versions qualify.
  Config Controller is a centralized and designated control plane which
  provides a more secure way to manage Google Cloud resources. For more
  information, see [Quickstart: Manage resources with Config Controller](https://docs.cloud.google.com/kubernetes-engine/config-controller/docs/manage-resources.md.txt)
  or
  [Set up Config Controller](https://docs.cloud.google.com/kubernetes-engine/config-controller/docs/setup.md.txt).

- **[GKE Config Connector add-on](https://docs.cloud.google.com/config-connector/docs/how-to/install-upgrade-uninstall.md.txt)** :
  The Config Connector add-on lets you install Config Connector during cluster creation.
  The Config Connector add-on is available on only GKE Standard
  clusters, and not
  [Autopilot](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/autopilot-overview.md.txt#add-ons).
  The add-on is tied to your cluster's GKE minor version and
  can lag behind the latest Config Connector releases by 12 months or more.
  For more information, see
  [Config Connector add-on upgrades](https://docs.cloud.google.com/config-connector/docs/how-to/install-upgrade-uninstall.md.txt#how-gcp-upgrades-add-on).

There are many factors to consider when selecting an installation method. The following table outlines some high-level considerations:

| Installation methods | Advantages | Disadvantages |
|---|---|---|
| Manual installation | • Allows more customization, such as installing in either namespaced mode (recommended) or cluster mode. • Flexible version update schedule. • Can run with any custom workload in the same cluster. | • Operational cost. |
| Config Controller | • No installation required. • Automatic version upgrades. • Includes [Config Sync](https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/overview.md.txt). • Managed and supported by Google Cloud. | • Restriction on custom workloads. • Managed by Google and may not be the absolute latest version available compared to manual installation. |
| GKE Config Connector add-on |   | • Significant lag behind the latest Config Connector version. |

## Authentication

If you want to install Config Connector on GKE clusters, use
[Workload Identity Federation for GKE](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/workload-identity.md.txt).
Workload Identity Federation for GKE lets you configure a Kubernetes ServiceAccount
to impersonate Identity and Access Management (IAM) service accounts to access Google Cloud
services. Config Connector uses that Kubernetes ServiceAccount
within your cluster to create new resources. Config Connector can only create
resources with the roles that you grant the IAM service account.

If you want to install Config Connector on other
[deployment options](https://docs.cloud.google.com/kubernetes-engine/enterprise/docs/deployment-options.md.txt), such as on-premises or
multi-cloud options, use [Cloud Identity](https://docs.cloud.google.com/identity/docs/overview.md.txt) to
create an account and then use IAM to
[create a service account key and import the key's credentials as a Secret to your clusters](https://docs.cloud.google.com/iam/docs/keys-create-delete.md.txt).

> [!NOTE]
> **Note:** Service account keys are a security risk if not managed correctly. You should [choose a more secure alternative to service account keys](https://docs.cloud.google.com/docs/authentication.md.txt#auth-decision-tree) whenever possible. If you must authenticate with a service account key, you are responsible for the security of the private key and for other operations described by [Best practices for managing service account keys](https://docs.cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys.md.txt). If you are prevented from creating a service account key, service account key creation might be disabled for your organization. For more information, see [Managing secure-by-default organization resources](https://docs.cloud.google.com/resource-manager/docs/secure-by-default-organizations).
>
>
> If you acquired the service account key from an external source, you must validate it before use.
> For more information, see [Security requirements for externally sourced credentials](https://docs.cloud.google.com/docs/authentication/external/externally-sourced-credentials).

## Managing resources with service accounts

When installing Config Connector manually, you can choose between a single,
cluster-wide service account (**cluster mode** ) or multiple service accounts,
one for each namespace (**namespaced mode** ). Namespaced mode is the recommended
approach for most use cases, as it provides better permission isolation. For
more information about using IAM service accounts with
Config Connector, see [Access control with
IAM](https://docs.cloud.google.com/config-connector/docs/how-to/configure-iam-permissions).

## What's next

- Learn how to [manage Google Cloud resources with Config Controller](https://docs.cloud.google.com/kubernetes-engine/config-controller/docs/manage-resources.md.txt).
- Learn how to [manually install Config Connector](https://docs.cloud.google.com/config-connector/docs/how-to/install-manually.md.txt).
- Learn how to [install Config Connector as a GKE add-on](https://docs.cloud.google.com/config-connector/docs/how-to/install-upgrade-uninstall.md.txt).