Capabilities
Gather AKS credentials
Configuring the connector requires you to pass in credentials generated in AKS. Gather these credentials before you move on.Look up your Azure subscription ID and cluster resource group name
1
In Azure, search for and navigate to your cluster’s home page.
2
On the Overview tab, locate the Essentials section.
3
Make a note of the cluster’s resource group name and subscription ID.
Look up your tenant ID
1
In the main search bar, click Tenant properties.
2
Make a note of the tenant ID.
Create a Service Principal
If desired, you can use an existing Service Principal. Follow these steps if you want to create a new one.1
In Entra admin center, navigate to App registrations.
2
Click + New registration.
3
Give the application a name, such as “C1”.
4
Select the supported account type appropriate for your organization. For most internal automation, “Accounts in this organizational directory only (Single tenant)” is sufficient.
5
You do not need to set a redirect URI.
6
Click Register.
7
The new app is created. Carefully copy and save the Application (client) ID and the Directory (tenant) ID shown on the application summary page.
8
Next, we’ll generate a client secret for this app. Click Certificates & secrets.
9
Click + New client secret.
10
Give the client secret a description and set its expiration.
11
Click Add.
12
The client secret is generated. Carefully copy and save the Secret Value.
Assign Azure RBAC permissions to the Service Principal
Next, grant this Service Principal the Reader role at the subscription level so it can discover and read all your AKS cluster information.1
In the Azure portal’s search bar, type “Subscriptions” and select the relevant Azure subscription.
2
In the left-hand menu of your Subscription, select Access control (IAM).
3
Click + Add > Add role assignment.
4
On the Role tab, search for and select the Reader role.
5
Click Next.
6
On the Members tab, ensure User, group, or service principal is selected for Assign access to.
7
Click + Select members.
8
In the Select members pane, search for and select the name of your App Registration.
9
Click Select at the bottom of the pane.
10
Click Review + assign at the bottom.
Make sure your Service Principal has cluster access
The Service Principal must have access to the cluster in Azure and the proper permissions defined in the cluster.1
In Azure, navigate to the cluster’s admin page and click Access control (IAM).
2
Locate Role assignments add a new assignment for your Service Principal. Commonly used roles are “Azure Kubernetes Service Cluster User Role” and “Azure Kubernetes Service Cluster Admin Role”.
Configure the AKS connector
- Cloud-hosted
- Self-hosted
Follow these instructions to use a built-in, no-code connector hosted by C1.Done. Your AKS connector is now pulling access data into C1.
1
In C1, navigate to Integrations > Connectors and click Add connector.
2
Search for AKS and click Add.
3
Choose how to set up the new AKS connector:
- Add the connector to a currently unmanaged app (select from the list of apps that were discovered in your identity, SSO, or federation provider that aren’t yet managed with C1)
- Add the connector to a managed app (select from the list of existing managed apps)
- Create a new managed app
4
Set the owner for this connector. You can manage the connector yourself, or choose someone else from the list of C1 users. Setting multiple owners is allowed.
If you choose someone else, C1 will notify the new connector owner by email that their help is needed to complete the setup process.
5
Click Next.
6
Find the Settings area of the page and click Edit.
7
Enter the AKS credentials into the relevant fields.
8
Click Save.
9
The connector’s label changes to Syncing, followed by Connected. You can view the logs to ensure that information is syncing.