Skip to content

Commit 12653d2

Browse files
Update to bring back mention of container links compatibility
1 parent 3633633 commit 12653d2

File tree

1 file changed

+1
-3
lines changed
  • content/en/docs/concepts/services-networking

1 file changed

+1
-3
lines changed

content/en/docs/concepts/services-networking/service.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,7 @@ variables and DNS.
450450
### Environment variables
451451

452452
When a Pod is run on a Node, the kubelet adds a set of environment variables
453-
for each active Service. It supports both granular variables like `{SVCNAME}_PORT_{SVCPORT}_PROTO` and more (see [makeLinkVariables](https://github.com/kubernetes/kubernetes/blob/dd2d12f6dc0e654c15d5db57a5f9f6ba61192726/pkg/kubelet/envvars/envvars.go#L72))
454-
as well as simpler `{SVCNAME}_SERVICE_HOST` and `{SVCNAME}_SERVICE_PORT` variables,
455-
where the Service name is upper-cased and dashes are converted to underscores.
453+
for each active Service. It adds `{SVCNAME}_SERVICE_HOST` and `{SVCNAME}_SERVICE_PORT` variables, where the Service name is upper-cased and dashes are converted to underscores. It also supports variables (see [makeLinkVariables](https://github.com/kubernetes/kubernetes/blob/dd2d12f6dc0e654c15d5db57a5f9f6ba61192726/pkg/kubelet/envvars/envvars.go#L72)) that are compatible with Docker Engine's "_[legacy container links](https://docs.docker.com/network/links/)_" feature.
456454

457455
For example, the Service `redis-master` which exposes TCP port 6379 and has been
458456
allocated cluster IP address 10.0.0.11, produces the following environment

0 commit comments

Comments
 (0)