This document will help you quickly understand and use the Connectors system.
The Connectors system provides a unified way to securely manage connections to external systems across your Kubernetes cluster. By using connectors, you can:
This guide uses GitHub as an example, but the same principles apply to connecting to other services.
10-15 minutes
No. | Operation Step | Description |
---|---|---|
1 | Verify Required Components | Ensure connector infrastructure is properly installed |
2 | Create Authentication Secret | Create a Kubernetes Secret with GitHub credentials |
3 | Create GitHub Connector | Configure a connector to GitHub |
4 | Verify Connector Status | Check if the connector is ready for use |
Before creating a GitHub connector, verify that the connector infrastructure is properly installed in your cluster.
Check that the Connectors Operator, ConnectorsCore, and ConnectorsGit are installed:
You should see both resources with a status of "Ready".
Verify that the Git ConnectorClass exists:
If the Git ConnectorClass is not found, you need to install ConnectorsGit first. See the Installation Guide for instructions.
Create a Kubernetes Secret containing the credentials for GitHub.
Execute the following command to create a Secret with your GitHub credentials:
Replace your-github-username
with your GitHub username and your-github-token
with your GitHub Personal Access Token.
Verify that the Secret was successfully created:
Create a connector to GitHub using the Git ConnectorClass.
Save the following YAML as github-connector.yaml
:
Apply the connector:
After creating the connector, check its status to ensure it's functioning correctly.
Use the following command to check the connector status:
To view detailed status information, use:
After successfully completing all steps, you will see the following results:
The GitHub connector resource status shows as "Ready":
All conditions in the detailed status information are "True":
If the connector has proxy functionality configured, you will also see a proxy address in the status:
Now, you have successfully created a GitHub connector and verified that it works.
Your applications can use this connector to securely access GitHub repositories without embedding credentials directly in application code.
If your connector doesn't reach the "Ready" status, check the following:
ConnectorClass Availability: Ensure the Git ConnectorClass exists:
If it doesn't exist, you need to install ConnectorsGit. See the Installation Guide.
Authentication Configuration: Ensure the credentials in the Secret are correct and have appropriate permissions.
Repository Accessibility: Verify that the repository specified in the auth params exists and is accessible with the provided credentials.
Check Controller Logs: Review the connector controller logs for detailed error information:
Now that you've created your first connector, you can: