mirror of https://github.com/linkerd/linkerd2.git
## Motivation Closes #4950 ## Solution Add the `config.linkerd.io/opaque-ports` annotation to either a namespace or pod spec to set the proxy `LINKERD2_PROXY_INBOUND_PORTS_DISABLE_PROTOCOL_DETECTION` environment variable. Currently this environment variable is not used by the proxy, but will be addressed by #4938. ## Valid values Ports: `config.linkerd.io/opaque-ports: 4322,3306` Port ranges: `config.linkerd.io/opaque-ports: 4320-4325` Mixed ports and port ranges: `config.linkerd.io/opaque-ports: 4320-4325` If the pod has named ports such as: ``` - name: nginx image: nginx:latest ports: - name: nginx-port containerPort: 80 protocol: TCP ``` The name can also be used as a value: `config.linkerd.io/opaque-ports: nginx-port` Signed-off-by: Kevin Leimkuhler <kevin@kleimkuhler.com> |
||
---|---|---|
.. | ||
inject.go | ||
inject_test.go | ||
report.go | ||
report_test.go | ||
uninject.go |