mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
Merge pull request #50796 from yguo0905/hc
Automatic merge from submit-queue (batch tested with PRs 50563, 50698, 50796) Disable Docker's health check until we officially support it Ref: https://github.com/kubernetes/kubernetes/issues/50703 Tested locally. Without this PR: ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES afdd796ddddc gcr.io/ygg-gke-dev/nginx-healthcheck "nginx -g 'daemon ..." 5 minutes ago Up 5 minutes (healthy) k8s_test-container_test-pod_default_8a1ad225-82bf-11e7-becb-480fcf514648_0 ``` With this PR: ``` e3fb2437555f gcr.io/ygg-gke-dev/nginx-healthcheck "nginx -g 'daemon ..." 10 seconds ago Up 9 seconds k8s_test-container_test-pod_default_de82e83c-82c0-11e7-b3fc-480fcf514648_0 ``` **Release note**: ``` Disable Docker's health check until we officially support it. ``` /assign @yujuhong /assign @dchen1107
This commit is contained in:
commit
e86f43bcab
@ -131,6 +131,11 @@ func (ds *dockerService) CreateContainer(podSandboxID string, config *runtimeapi
|
||||
OpenStdin: config.Stdin,
|
||||
StdinOnce: config.StdinOnce,
|
||||
Tty: config.Tty,
|
||||
// Disable Docker's health check until we officially support it
|
||||
// (https://github.com/kubernetes/kubernetes/issues/25829).
|
||||
Healthcheck: &dockercontainer.HealthConfig{
|
||||
Test: []string{"NONE"},
|
||||
},
|
||||
},
|
||||
HostConfig: &dockercontainer.HostConfig{
|
||||
Binds: generateMountBindings(config.GetMounts()),
|
||||
|
Loading…
Reference in New Issue
Block a user