mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user