mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
Add timeout to kubelet client
This commit is contained in:
@@ -84,6 +84,7 @@ func NewKubeletClient(config *KubeletConfig) (KubeletClient, error) {
|
||||
|
||||
c := &http.Client{
|
||||
Transport: transport,
|
||||
Timeout: config.HTTPTimeout,
|
||||
}
|
||||
return &HTTPKubeletClient{
|
||||
Client: c,
|
||||
|
Reference in New Issue
Block a user