Config Sync and Policy Controller enforce a common configuration across your
entire infrastructure. You define configurations, such as custom security policies.
These configurations are stored in a version-controlled source of truth, such as a Git repository.
Config Sync and Policy Controller then ensure that your infrastructure aligns with these configurations.

## Before you begin

If you host your Config Sync source of truth at a location
that's inaccessible from your AWS VPC , you must open outbound access to your
source of truth host from your
[node pool security group](https://docs.cloud.google.com/kubernetes-engine/multi-cloud/docs/aws/reference/security-groups.md.txt#node_pool_security_groups).
The following list contains default ports based on your authentication
method.

| Authentication method | Port |
|---|---|
| Access to Git with [SSH key pair](https://docs.cloud.google.com/anthos-config-management/docs/how-to/installing#git-creds-ssh) | 22 |
| Access to Git with [Cookiefile](https://docs.cloud.google.com/anthos-config-management/docs/how-to/installing#git-creds-cookiefile) | 443 |
| Access to Git or Helm with [Personal access token](https://docs.cloud.google.com/anthos-config-management/docs/how-to/installing#git-creds-token) | 443 |
| Access to Git with [Google Cloud service account](https://docs.cloud.google.com/anthos-config-management/docs/how-to/installing#google-service-account) | 443 |
| Access to OCI or Helm with [`gcenode`](https://docs.cloud.google.com/anthos-config-management/docs/how-to/installing#git-creds-gcenode) | 443 |
| Access to OCI or Helm with [`gcpserviceaccount` and Workload Identity Federation for GKE](https://docs.cloud.google.com/anthos-config-management/docs/how-to/installing-config-sync#gcenode) | 443 |

## Installation instructions

To enable Config Sync to sync Kubernetes configuration
files from a source of truth, follow the
installation instructions in the
[Config Sync](https://docs.cloud.google.com/anthos-config-management/docs/how-to/installing-config-sync)
documentation.

To enable Policy Controller to audit and enforce admission control policies,
follow the installation instructions in the
[Policy Controller](https://docs.cloud.google.com/anthos-config-management/docs/how-to/installing-policy-controller)
documentation.

## What's next?

- Learn about adding [Configs](https://docs.cloud.google.com/anthos-config-management/docs/concepts/configs)
  to a source of truth.

- Check the
  [examples GitHub repository](https://github.com/GoogleCloudPlatform/anthos-config-management-samples).