Skip to content

docs: document x-enable-service-links compose field - #1312

Open
ekline[bot] wants to merge 1 commit into
mainfrom
docs/compose-x-enable-service-links
Open

docs: document x-enable-service-links compose field#1312
ekline[bot] wants to merge 1 commit into
mainfrom
docs/compose-x-enable-service-links

Conversation

@ekline

@ekline ekline Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What this documents

Documents the new optional x-enable-service-links service field in the Docker Compose reference, introduced in okteto/okteto#5093.

The field maps to the Kubernetes pod spec's enableServiceLinks. Setting it to false stops Kubernetes from injecting service-link environment variables (<SERVICE>_SERVICE_HOST, <SERVICE>_SERVICE_PORT, <SERVICE>_PORT, and related variants) into a service's containers. It is opt-in and unset by default, preserving current behavior.

Changes

  • Added an x-enable-service-links (boolean, optional) field section in src/content/reference/docker-compose.mdx, alongside the existing x-node-selector and x-okteto-identity-token extensions.
  • Added a row for the field to the Okteto-specific extras summary table.

How to verify

Open the Docker Compose reference page and confirm the new field section and the summary-table row read correctly and match the surrounding x-* field documentation.

Source PR: okteto/okteto#5093


📝 Created with EkLine · View session

ekline[bot] <202747777+ekline[bot]@users.noreply.github.com>

Document the new optional x-enable-service-links service field in the
Docker Compose reference, added in okteto/okteto#5093. It toggles
Kubernetes service-link environment variable injection per service.

ekline[bot] <202747777+ekline[bot]@users.noreply.github.com>

Signed-off-by: ekline[bot] <202747777+ekline[bot]@users.noreply.github.com>
@netlify

netlify Bot commented Jul 22, 2026

Copy link
Copy Markdown

Deploy Preview for okteto-docs ready!

Name Link
🔨 Latest commit 2e7e9f7
🔍 Latest deploy log https://app.netlify.com/projects/okteto-docs/deploys/6a60af204caeff0009144e57
😎 Deploy Preview https://deploy-preview-1312--okteto-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ekline
ekline Bot requested a review from jLopezbarb July 22, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants