Merge pull request #42902 from louyihua/allow-tcp-probe-host

Automatic merge from submit-queue (batch tested with PRs 42998, 42902, 42959, 43020, 42948)

Add Host field to TCPSocketAction

Currently, TCPSocketAction always uses Pod's IP in connection. But when a pod uses the host network, sometimes firewall rules may prevent kubelet from connecting through the Pod's IP.

This PR introduces the 'Host' field for TCPSocketAction, and if it is set to non-empty string, the probe will be performed on the configured host rather than the Pod's IP. This gives users an opportunity to explicitly specify 'localhost' as the target for the above situations.

```release-note
Add Host field to TCPSocketAction
```
This commit is contained in:
Kubernetes Submit Queue
2017-03-25 17:17:23 -07:00
committed by GitHub
27 changed files with 1408 additions and 1125 deletions

View File

@@ -41178,6 +41178,10 @@
"port"
],
"properties": {
"host": {
"description": "Optional: Host name to connect to, defaults to the pod IP.",
"type": "string"
},
"port": {
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
"$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString"