Tekton Hub Configuration
TOC
OverviewCore Configuration AreasCatalog Refresh ConfigurationDefault Refresh IntervalModifying Refresh IntervalDisabling Automated RefreshCategories ConfigurationDefault CategoriesAdding Custom CategoriesApplying Category ChangesUsing Categories in ResourcesHub Resolver ConfigurationPrerequisitesEnabling Hub ResolverHub Resolver ConfigurationCustom Hub EndpointsApplying ConfigurationTesting Hub ResolverCommon Configuration IssuesHub Resolver ProblemsCatalog Refresh IssuesCategory Configuration ProblemsOverview
This guide covers the basic configuration of Tekton Hub instances, including installation and core system settings. Learn how to configure the fundamental aspects of your Tekton Hub deployment.
Important: If you deployed
Tekton HubthroughTektonConfig, modify the catalog configuration in theTektonConfigresource instead of directly editing theConfigMap. DirectConfigMapmodifications will be overridden by theTekton Operatorcontroller.
Namespace Note: Throughout this guide,
<tekton-pipelines>is used as a placeholder for yourTekton Hubnamespace. Replace it with your actual namespace name. The default installation usestekton-pipelinesnamespace.
Core Configuration Areas
This guide covers essential Tekton Hub configuration topics:
- Catalog Refresh: Automated resource synchronization
- Categories: Resource classification and organization
- Hub Resolver: Integration with
Tekton Pipelines
Catalog Refresh Configuration
Default Refresh Interval
By default, Tekton Hub refreshes catalogs every 30 minutes to fetch the latest resources from configured repositories.
Modifying Refresh Interval
The refresh interval can be configured by modifying the CATALOG_REFRESH_INTERVAL setting in the tekton-hub-api ConfigMap.
Supported Time Units:
s(seconds):30s,60sm(minutes):15m,30m,45mh(hours):1h,2h,12hd(days):1d,2dw(weeks):1w,2w
Example Configuration:
Disabling Automated Refresh
To skip automated refresh entirely, set the interval to empty or "0":
Categories Configuration
Default Categories
Tekton Hub provides the following standard categories for resource organization:
- Automation
- Build Tools
- CLI
- Cloud
- Code Quality
- Continuous Integration
- Deployment
- Developer Tools
- Image Build
- Integration & Delivery
- Git
- Kubernetes
- Messaging
- Monitoring
- Networking
- Openshift
- Publishing
- Security
- Storage
- Testing
- Script
Adding Custom Categories
You can add custom categories by modifying the CATEGORIES section in the tekton-hub-api ConfigMap:
Category Guidelines:
- Use clear, descriptive names
- Follow title case formatting
- Avoid duplicating existing categories
- Keep names concise but meaningful
Applying Category Changes
After updating the categories:
-
Apply the updated ConfigMap:
-
Refresh the Hub configuration:
Using Categories in Resources
Resources in your catalog can reference these categories through annotations:
Hub Resolver Configuration
The Hub resolver enables users to reference Hub resources in TaskRuns and PipelineRuns. Proper configuration is essential for catalog resource resolution.
Prerequisites
Tekton Pipelinesv0.41.0 or later- Built-in remote resolvers installed
- Beta features enabled (if using beta resolver features)
Enabling Hub Resolver
Enable the Hub resolver by setting the feature flag in the feature-flags ConfigMap:
Hub Resolver Configuration
Configure Hub resolver defaults via the hubresolver-config ConfigMap:
Custom Hub Endpoints
In most cases, you should keep the default
TEKTON_HUB_APIendpoint (http://tekton-hub-api.tekton-pipelines:8000/) unchanged. Only modify this endpoint when you specifically need to integrate with an external hub API.
For custom Tekton Hub instances, configure API endpoints via environment variables in the resolver deployment:
Applying Configuration
After updating resolver configuration:
-
Apply the ConfigMap changes:
-
Restart the resolver deployment:
Testing Hub Resolver
Test resolver configuration with a simple TaskRun:
Common Configuration Issues
Hub Resolver Problems
Issue: Resources cannot be resolved via Hub resolver
Solutions:
- Verify
Hubresolver is enabled:kubectl get cm feature-flags -n <tekton-pipelines> -o yaml - Check resolver configuration:
kubectl get cm hubresolver-config -n <tekton-pipelines> - Ensure catalog names match between
Hubconfiguration and resolver parameters
Catalog Refresh Issues
Issue: Catalogs not updating automatically
Solutions:
- Check refresh interval setting:
CATALOG_REFRESH_INTERVAL - Verify catalog repository accessibility
- Review
APIpod logs for sync errors - Manually restart
APIpod:kubectl delete pod app=tekton-hub-api -n <tekton-pipelines>
Category Configuration Problems
Issue: Resources not appearing in expected categories
Solutions:
- Verify category exists in
Hubconfiguration - Check resource annotations match configured categories
- Restart
APIpod after category changes