Skip to content

fix: declare API container ports - #1546

Open
sudhishmk wants to merge 1 commit into
tektoncd:mainfrom
sudhishmk:fix/api-container-ports-1507
Open

sudhishmk wants to merge 1 commit into
tektoncd:mainfrom
sudhishmk:fix/api-container-ports-1507

Conversation

@sudhishmk

Copy link
Copy Markdown

Changes

Declare server:8080/TCP and prometheus:9090/TCP on the API container, matching the existing Service and default listeners. This allows tools that inspect pod specifications to discover the API endpoints.

Profiling port 6060 is omitted because profiling is disabled by default and binds only to loopback when enabled.

Fixes #1507

/kind bug

Validation

  • Rendered config/base and all five overlays successfully with kubectl kustomize.
  • Confirmed both named TCP ports appear in every rendered API Deployment.
  • git diff --check passed.

Tested the current API source with PostgreSQL in an isolated namespace on a local kind cluster:

  • Before: The running API pod had no declared ports, while HTTPS /healthz and HTTP /metrics both returned 200.
  • After: The pod declared server:8080/TCP and prometheus:9090/TCP. Named-port forwarding worked for both ports, and both endpoints returned 200.
  • HTTPS certificate verification passed in both cases.

Submitter Checklist

  • Validated the manifest change locally
  • Tested API health and metrics before and after the change
  • Kind label specified
  • Release notes updated

Release Notes

Declare API and metrics container ports so discovery tools can identify Tekton Results API endpoints.

Declare server (8080/TCP) and prometheus (9090/TCP) ports so tools that inspect pod specifications can discover the API endpoints.

Fixes tektoncd#1507

AI-assisted change.

Signed-off-by: Sudhish Nair <sudhish_mk@yahoo.co.in>
@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. labels Nov 24, 2026
@tekton-robot
tekton-robot requested review from enarha and khrm November 24, 2026 12:47
@tekton-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign vdemeester after the PR has been reviewed.
You can assign the PR to them by writing /assign @vdemeester in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Declare containerPorts on tekton-results-api Deployment

2 participants