Quick Start
This document will help you quickly understand and use the Connectors system.
TOC
IntroductionApplicable ScenariosEstimated Reading TimeNotesPrerequisitesProcess OverviewSteps to OperateStep 1: Verify Required ComponentsStep 2: Create Authentication SecretStep 3: Create GitHub ConnectorStep 4: Verify Connector StatusExpected ResultsTroubleshootingNext StepsIntroduction
Applicable Scenarios
The Connectors system provides a unified way to securely manage connections to external systems across your Kubernetes cluster. By using connectors, you can:
- Centralize credential management for external services
- Eliminate hardcoded credentials in application code
- Ensure consistent access patterns across your organization
- Monitor and audit service connections in one place
This guide uses GitHub as an example, but the same principles apply to connecting to other services.
Estimated Reading Time
10-15 minutes
Notes
- This quick start assumes you already have the Connectors Operator installed and a
ConnectorsConfigreconciled toReady(the operator creates one automatically — see the Installation Guide). The default install enables every component, includingcoreandgit, which are required for this guide. - You need a GitHub account and a Personal Access Token (PAT) with appropriate permissions.
- Connector status reflects the health and accessibility of the connection.
Prerequisites
- Kubernetes cluster with the Connectors Operator installed and a
ConnectorsConfigreconciled toReady. The default install enables thecoreandgitcomponents needed for this guide. - kubectl configured to communicate with your cluster
- GitHub account and valid Personal Access Token (PAT)
- Basic knowledge of Kubernetes resources
Process Overview
Steps to Operate
Step 1: Verify Required Components
Before creating a GitHub connector, verify that the connector infrastructure is properly installed in your cluster.
-
Check that the
ConnectorsConfigis reconciled toReady:READYshould reportTrue. For per-component phases, runkubectl describe connectorsconfig connectors-config -n <namespace>. -
Verify that the Git ConnectorClass exists:
If the Git ConnectorClass is not found, the
gitcomponent is disabled or has not finished installing. Enable it onConnectorsConfig(spec.components.git.enabled: true) and re-check — see the Installation Guide for the configuration syntax.
Step 2: Create Authentication Secret
Create a Kubernetes Secret containing the credentials for GitHub.
-
Execute the following command to create a Secret with your GitHub credentials:
Replace
your-github-usernamewith your GitHub username andyour-github-tokenwith your GitHub Personal Access Token. -
Verify that the Secret was successfully created:
Step 3: Create GitHub Connector
Create a connector to GitHub using the Git ConnectorClass.
-
Save the following YAML as
github-connector.yaml: -
Apply the connector:
Step 4: Verify Connector Status
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:
Expected Results
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.
Troubleshooting
If your connector doesn't reach the "Ready" status, check the following:
-
ConnectorClass Availability: Ensure the Git ConnectorClass exists:
If it doesn't exist, the
gitcomponent is disabled or has not finished installing onConnectorsConfig. See the Installation Guide for the configuration syntax. -
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:
Next Steps
Now that you've created your first connector, you can:
- Create connectors for other Git services (GitLab, Harbor, etc.)
- Configure applications to use the connector for secure access to Git repositories